home *** CD-ROM | disk | FTP | other *** search
/ Java Developer's Companion / Java Developer's Companion.iso / Javacup / INGZP26A.TAR < prev    next >
Tape Archive  |  1996-06-10  |  322.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Tape Archive (archive/tar).

You can browse this item here: INGZP26A.TAR

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file POSIX tar archive default
99% file POSIX tar archive, directory internet/INGZP26A/, mode 0040755, uid 0000000, gid 0000001, size 00000000000, seconds 06150423763, user root, group other, devmaj 0000040, devmin 0000210 default
98% file data default
62% TrID TAR - Tape ARchive (POSIX) default
37% TrID TAR - Tape ARchive (directory) default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype POSIX tar archive default
100% detectItEasy Archive: tar default
100% binwalkID POSIX tar archive, owner user name: "/INGZP26A/" default
100% xdgMime application/x-tar default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 69 6e 74 65 72 6e 65 74 | 2f 49 4e 47 5a 50 32 36 |internet|/INGZP26|
|00000010| 41 2f 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |A/......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 30 30 34 30 | 37 35 35 00 30 30 30 30 |....0040|755.0000|
|00000070| 30 30 30 00 30 30 30 30 | 30 30 31 00 30 30 30 30 |000.0000|001.0000|
|00000080| 30 30 30 30 30 30 30 00 | 30 36 31 35 30 34 32 33 |0000000.|06150423|
|00000090| 37 36 33 00 30 30 31 34 | 32 32 34 00 35 00 00 00 |763.0014|224.5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 00 30 | 30 72 6f 6f 74 00 00 00 |.ustar.0|0root...|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 6f 74 68 65 72 00 00 |........|.other..|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 30 34 30 |........|.0000040|
|00000150| 00 30 30 30 30 32 31 30 | 00 00 00 00 00 00 00 00 |.0000210|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 69 6e 74 65 72 6e 65 74 | 2f 49 4e 47 5a 50 32 36 |internet|/INGZP26|
|00000210| 41 2f 61 70 70 6c 65 74 | 2e 68 74 6d 6c 00 00 00 |A/applet|.html...|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 30 |....0100|644.0000|
|00000270| 30 30 30 00 30 30 30 30 | 30 30 31 00 30 30 30 30 |000.0000|001.0000|
|00000280| 30 30 30 33 35 34 33 00 | 30 36 31 35 30 34 32 33 |0003543.|06150423|
|00000290| 37 36 30 00 30 30 31 36 | 33 37 36 00 30 00 00 00 |760.0016|376.0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 00 30 | 30 72 6f 6f 74 00 00 00 |.ustar.0|0root...|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 6f 74 68 65 72 00 00 |........|.other..|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 30 34 30 |........|.0000040|
|00000350| 00 30 30 30 30 32 31 30 | 00 00 00 00 00 00 00 00 |.0000210|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 3c 48 54 4d 4c 3e 0a 3c | 48 45 41 44 3e 0a 3c 54 |<HTML>.<|HEAD>.<T|
|00000410| 49 54 4c 45 3e 0a 20 20 | 20 20 20 4d 61 70 49 6e |ITLE>. | MapIn|
|00000420| 66 6f 3a 20 41 6e 20 49 | 6e 74 65 72 61 63 74 69 |fo: An I|nteracti|
|00000430| 76 65 20 4d 61 70 20 42 | 72 6f 77 73 65 72 0a 3c |ve Map B|rowser.<|
|00000440| 2f 54 49 54 4c 45 3e 0a | 3c 2f 48 45 41 44 3e 0a |/TITLE>.|</HEAD>.|
|00000450| 0a 3c 42 4f 44 59 20 42 | 47 43 4f 4c 4f 52 3d 22 |.<BODY B|GCOLOR="|
|00000460| 23 66 32 66 30 65 66 22 | 20 54 45 58 54 3d 22 23 |#f2f0ef"| TEXT="#|
|00000470| 30 30 30 30 30 30 22 3e | 0a 0a 3c 48 32 3e 0a 4d |000000">|..<H2>.M|
|00000480| 61 70 49 6e 66 6f 3a 20 | 41 6e 20 49 6e 74 65 72 |apInfo: |An Inter|
|00000490| 61 63 74 69 76 65 20 4d | 61 70 20 42 72 6f 77 73 |active M|ap Brows|
|000004a0| 65 72 0a 3c 2f 48 32 3e | 0a 3c 48 33 3e 0a 20 20 |er.</H2>|.<H3>. |
|000004b0| 20 20 20 55 6e 69 76 65 | 72 73 69 74 79 20 6f 66 | Unive|rsity of|
|000004c0| 20 42 72 69 74 69 73 68 | 20 43 6f 6c 75 6d 62 69 | British| Columbi|
|000004d0| 61 20 2d 20 43 61 6d 70 | 75 73 20 4d 61 70 20 0a |a - Camp|us Map .|
|000004e0| 3c 2f 48 33 3e 0a 0a 3c | 48 52 3e 20 3c 50 3e 20 |</H3>..<|HR> <P> |
|000004f0| 54 68 65 72 65 20 73 68 | 6f 75 6c 64 20 62 65 20 |There sh|ould be |
|00000500| 61 6e 20 69 6e 74 65 72 | 61 63 74 69 76 65 20 6d |an inter|active m|
|00000510| 61 70 20 6f 66 20 74 68 | 65 20 55 42 43 20 63 61 |ap of th|e UBC ca|
|00000520| 6d 70 75 73 20 62 65 6c | 6f 77 20 69 66 0a 79 6f |mpus bel|ow if.yo|
|00000530| 75 72 20 62 72 6f 77 73 | 65 72 20 73 75 70 70 6f |ur brows|er suppo|
|00000540| 72 74 73 20 53 75 6e 27 | 73 20 4a 61 76 61 20 6c |rts Sun'|s Java l|
|00000550| 61 6e 67 75 61 67 65 2e | 20 20 41 6e 20 65 78 61 |anguage.| An exa|
|00000560| 6d 70 6c 65 20 6f 66 20 | 73 75 63 68 20 61 0a 62 |mple of |such a.b|
|00000570| 72 6f 77 73 65 72 20 69 | 73 20 4e 65 74 73 63 61 |rowser i|s Netsca|
|00000580| 70 65 20 4e 61 76 69 67 | 61 74 6f 72 20 32 2e 30 |pe Navig|ator 2.0|
|00000590| 20 66 6f 72 20 33 32 2d | 62 69 74 20 57 69 6e 64 | for 32-|bit Wind|
|000005a0| 6f 77 73 20 28 57 69 6e | 64 6f 77 73 20 39 35 2c |ows (Win|dows 95,|
|000005b0| 0a 57 69 6e 64 6f 77 73 | 20 4e 54 29 20 61 6e 64 |.Windows| NT) and|
|000005c0| 20 6d 6f 73 74 20 66 6c | 61 76 6f 72 73 20 6f 66 | most fl|avors of|
|000005d0| 20 55 6e 69 78 2e 3c 2f | 50 3e 0a 0a 3c 50 3e 0a | Unix.</|P>..<P>.|
|000005e0| 3c 42 3e 59 6f 75 20 63 | 61 6e 20 75 73 65 20 74 |<B>You c|an use t|
|000005f0| 68 69 73 20 6d 61 70 20 | 74 6f 20 67 65 74 20 64 |his map |to get d|
|00000600| 65 74 61 69 6c 65 64 20 | 69 6e 66 6f 72 6d 61 74 |etailed |informat|
|00000610| 69 6f 6e 20 61 62 6f 75 | 74 20 62 75 69 6c 64 69 |ion abou|t buildi|
|00000620| 6e 67 73 20 61 6e 64 0a | 6c 6f 63 61 74 69 6f 6e |ngs and.|location|
|00000630| 73 20 6f 6e 20 74 68 65 | 20 55 42 43 20 63 61 6d |s on the| UBC cam|
|00000640| 70 75 73 2c 20 73 65 61 | 72 63 68 20 66 6f 72 20 |pus, sea|rch for |
|00000650| 6c 6f 63 61 74 69 6f 6e | 73 20 62 79 20 6e 61 6d |location|s by nam|
|00000660| 65 2c 20 0a 6f 72 20 6e | 61 76 69 67 61 74 65 20 |e, .or n|avigate |
|00000670| 74 68 72 6f 75 67 68 20 | 55 42 43 27 73 20 6d 61 |through |UBC's ma|
|00000680| 6e 79 20 57 6f 72 6c 64 | 20 57 69 64 65 20 57 65 |ny World| Wide We|
|00000690| 62 20 73 65 72 76 65 72 | 73 20 67 65 6f 67 72 61 |b server|s geogra|
|000006a0| 70 68 69 63 61 6c 6c 79 | 2e 0a 3c 2f 42 3e 0a 3c |phically|..</B>.<|
|000006b0| 2f 50 3e 0a 0a 3c 50 3e | 0a 45 76 65 6e 74 75 61 |/P>..<P>|.Eventua|
|000006c0| 6c 6c 79 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 62 |lly you |should b|
|000006d0| 65 20 61 62 6c 65 20 74 | 6f 20 6c 65 74 20 74 68 |e able t|o let th|
|000006e0| 65 20 6d 61 70 20 66 69 | 6e 64 20 73 68 6f 72 74 |e map fi|nd short|
|000006f0| 65 73 74 20 72 6f 75 74 | 65 73 0a 66 6f 72 20 79 |est rout|es.for y|
|00000700| 6f 75 2c 20 6c 6f 61 64 | 20 64 65 74 61 69 6c 65 |ou, load| detaile|
|00000710| 64 20 6d 61 70 73 20 6f | 66 20 73 65 6c 65 63 74 |d maps o|f select|
|00000720| 65 64 20 72 65 67 69 6f | 6e 73 20 6f 72 20 6c 6f |ed regio|ns or lo|
|00000730| 63 61 74 69 6f 6e 73 2c | 20 0a 61 6e 64 20 6c 69 |cations,| .and li|
|00000740| 6e 6b 20 74 6f 20 73 69 | 6d 69 6c 61 72 20 6d 61 |nk to si|milar ma|
|00000750| 70 73 20 6f 66 20 6f 74 | 68 65 72 20 6c 6f 63 61 |ps of ot|her loca|
|00000760| 74 69 6f 6e 73 2c 20 0a | 3c 2f 50 3e 0a 3c 42 52 |tions, .|</P>.<BR|
|00000770| 3e 0a 0a 3c 50 3e 0a 3c | 41 50 50 4c 45 54 20 0a |>..<P>.<|APPLET .|
|00000780| 20 20 20 20 43 4f 44 45 | 42 41 53 45 3d 22 2e 2f | CODE|BASE="./|
|00000790| 63 6c 61 73 73 65 73 22 | 0a 20 20 20 20 43 4f 44 |classes"|. COD|
|000007a0| 45 3d 4d 61 70 49 6e 66 | 6f 0a 20 20 20 20 57 49 |E=MapInf|o. WI|
|000007b0| 44 54 48 3d 38 37 35 20 | 48 45 49 47 48 54 3d 34 |DTH=875 |HEIGHT=4|
|000007c0| 39 30 3e 0a 3c 2f 41 50 | 50 4c 45 54 3e 0a 3c 42 |90>.</AP|PLET>.<B|
|000007d0| 52 20 43 4c 45 41 52 3d | 41 4c 4c 3e 0a 0a 3c 48 |R CLEAR=|ALL>..<H|
|000007e0| 52 3e 0a 0a 3c 48 34 3e | 53 6f 6d 65 20 64 6f 63 |R>..<H4>|Some doc|
|000007f0| 75 6d 65 6e 74 61 74 69 | 6f 6e 3c 2f 48 34 3e 0a |umentati|on</H4>.|
|00000800| 0a 3c 55 4c 3e 0a 3c 4c | 49 3e 20 3c 41 20 48 52 |.<UL>.<L|I> <A HR|
|00000810| 45 46 3d 22 68 6f 77 74 | 6f 2e 68 74 6d 22 3e 48 |EF="howt|o.htm">H|
|00000820| 6f 77 20 74 6f 20 75 73 | 65 20 74 68 69 73 20 6d |ow to us|e this m|
|00000830| 61 70 3c 2f 41 3e 0a 3c | 4c 49 3e 20 3c 41 20 48 |ap</A>.<|LI> <A H|
|00000840| 52 45 46 3d 22 68 6f 77 | 2e 68 74 6d 22 3e 48 6f |REF="how|.htm">Ho|
|00000850| 77 20 69 74 27 73 20 64 | 6f 6e 65 3c 2f 41 3e 0a |w it's d|one</A>.|
|00000860| 3c 4c 49 3e 20 3c 41 20 | 48 52 45 46 3d 22 77 69 |<LI> <A |HREF="wi|
|00000870| 70 2e 68 74 6d 22 3e 57 | 6f 72 6b 20 69 6e 20 70 |p.htm">W|ork in p|
|00000880| 72 6f 67 72 65 73 73 3c | 2f 41 3e 0a 3c 2f 55 4c |rogress<|/A>.</UL|
|00000890| 3e 0a 0a 3c 50 3e 20 50 | 6c 65 61 73 65 20 6c 65 |>..<P> P|lease le|
|000008a0| 74 20 6d 65 20 6b 6e 6f | 77 20 69 66 20 79 6f 75 |t me kno|w if you|
|000008b0| 20 66 69 6e 64 20 74 68 | 69 73 20 75 73 65 66 75 | find th|is usefu|
|000008c0| 6c 2c 20 6f 72 20 69 66 | 20 79 6f 75 20 68 61 76 |l, or if| you hav|
|000008d0| 65 0a 73 75 67 67 65 73 | 74 69 6f 6e 73 20 66 6f |e.sugges|tions fo|
|000008e0| 72 20 68 6f 77 20 74 68 | 65 20 73 6f 66 74 77 61 |r how th|e softwa|
|000008f0| 72 65 20 63 61 6e 20 62 | 65 20 69 6d 70 72 6f 76 |re can b|e improv|
|00000900| 65 64 2e 20 20 49 27 64 | 20 61 6c 73 6f 20 62 65 |ed. I'd| also be|
|00000910| 20 76 65 72 79 0a 68 61 | 70 70 79 20 74 6f 20 68 | very.ha|ppy to h|
|00000920| 65 61 72 20 72 65 70 6f | 72 74 73 20 61 62 6f 75 |ear repo|rts abou|
|00000930| 74 20 65 72 72 6f 72 73 | 20 6f 72 20 69 6e 63 6f |t errors| or inco|
|00000940| 6e 73 69 73 74 65 6e 63 | 69 65 73 20 69 6e 20 74 |nsistenc|ies in t|
|00000950| 68 65 0a 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 74 |he.infor|mation t|
|00000960| 68 69 73 20 6d 61 70 20 | 70 72 65 73 65 6e 74 73 |his map |presents|
|00000970| 21 20 20 59 6f 75 20 63 | 61 6e 20 65 2d 6d 61 69 |! You c|an e-mai|
|00000980| 6c 20 6d 65 20 61 74 0a | 3c 41 20 48 52 45 46 3d |l me at.|<A HREF=|
|00000990| 22 6d 61 69 6c 74 6f 3a | 2f 64 6a 75 6e 40 6d 61 |"mailto:|/djun@ma|
|000009a0| 74 68 2e 75 62 63 2e 63 | 61 22 3e 64 6a 75 6e 40 |th.ubc.c|a">djun@|
|000009b0| 6d 61 74 68 2e 75 62 63 | 2e 63 61 3c 2f 41 3e 2e |math.ubc|.ca</A>.|
|000009c0| 0a 3c 2f 50 3e 0a 0a 3c | 50 3e 20 54 68 69 73 20 |.</P>..<|P> This |
|000009d0| 6d 61 70 20 69 73 20 62 | 61 73 65 64 20 6f 6e 20 |map is b|ased on |
|000009e0| 61 20 6d 61 70 20 70 72 | 65 70 61 72 65 64 20 62 |a map pr|epared b|
|000009f0| 79 20 55 42 43 27 73 20 | 43 61 6d 70 75 73 20 50 |y UBC's |Campus P|
|00000a00| 6c 61 6e 6e 69 6e 67 20 | 0a 61 6e 64 20 44 65 76 |lanning |.and Dev|
|00000a10| 65 6c 6f 70 6d 65 6e 74 | 20 64 65 70 61 72 74 6d |elopment| departm|
|00000a20| 65 6e 74 2e 20 20 49 27 | 6d 20 67 72 61 74 65 66 |ent. I'|m gratef|
|00000a30| 75 6c 20 66 6f 72 20 74 | 68 65 69 72 20 70 65 72 |ul for t|heir per|
|00000a40| 6d 69 73 73 69 6f 6e 20 | 74 6f 20 0a 75 73 65 20 |mission |to .use |
|00000a50| 74 68 69 73 20 69 6d 61 | 67 65 2e 20 20 0a 3c 50 |this ima|ge. .<P|
|00000a60| 3e 0a 0a 3c 50 3e 0a 50 | 6c 65 61 73 65 20 76 69 |>..<P>.P|lease vi|
|00000a70| 73 69 74 20 6d 79 20 57 | 65 62 20 70 61 67 65 20 |sit my W|eb page |
|00000a80| 61 74 20 74 68 65 20 55 | 42 43 20 4d 61 74 68 65 |at the U|BC Mathe|
|00000a90| 6d 61 74 69 63 73 20 44 | 65 70 61 72 74 6d 65 6e |matics D|epartmen|
|00000aa0| 74 27 73 20 57 65 62 20 | 73 65 72 76 65 72 3a 20 |t's Web |server: |
|00000ab0| 0a 3c 41 20 48 52 45 46 | 3d 22 68 74 74 70 3a 2f |.<A HREF|="http:/|
|00000ac0| 2f 77 77 77 2e 6d 61 74 | 68 2e 75 62 63 2e 63 61 |/www.mat|h.ubc.ca|
|00000ad0| 2f 7e 64 6a 75 6e 2f 64 | 6a 75 6e 2e 68 74 6d 6c |/~djun/d|jun.html|
|00000ae0| 22 3e 44 6a 75 6e 20 4b | 69 6d 3c 2f 41 3e 0a 3c |">Djun K|im</A>.<|
|00000af0| 2f 50 3e 0a 0a 0a 3c 50 | 3e 0a 54 68 69 73 20 65 |/P>...<P|>.This e|
|00000b00| 6e 74 69 72 65 20 77 6f | 72 6b 20 69 73 20 43 6f |ntire wo|rk is Co|
|00000b10| 70 79 72 69 67 68 74 20 | 26 63 6f 70 79 20 31 39 |pyright |&copy 19|
|00000b20| 39 36 20 44 6a 75 6e 20 | 4d 2e 20 4b 69 6d 2e 20 |96 Djun |M. Kim. |
|00000b30| 20 41 6c 6c 20 72 69 67 | 68 74 73 0a 72 65 73 65 | All rig|hts.rese|
|00000b40| 72 76 65 64 2e 20 0a 3c | 2f 50 3e 0a 0a 0a 3c 48 |rved. .<|/P>...<H|
|00000b50| 52 3e 0a 3c 2f 42 4f 44 | 59 3e 0a 3c 2f 48 54 4d |R>.</BOD|Y>.</HTM|
|00000b60| 4c 3e 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |L>......|........|
|00000b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 69 6e 74 65 72 6e 65 74 | 2f 49 4e 47 5a 50 32 36 |internet|/INGZP26|
|00000c10| 41 2f 49 4e 47 5a 50 32 | 36 41 2e 68 74 6d 6c 00 |A/INGZP2|6A.html.|
|00000c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 30 |....0100|644.0000|
|00000c70| 30 30 30 00 30 30 30 30 | 30 30 31 00 30 30 30 30 |000.0000|001.0000|
|00000c80| 30 30 30 30 35 31 37 00 | 30 36 31 35 30 34 32 33 |0000517.|06150423|
|00000c90| 37 36 30 00 30 30 31 36 | 32 34 37 00 30 00 00 00 |760.0016|247.0...|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 75 73 74 61 72 00 30 | 30 72 6f 6f 74 00 00 00 |.ustar.0|0root...|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 6f 74 68 65 72 00 00 |........|.other..|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 30 34 30 |........|.0000040|
|00000d50| 00 30 30 30 30 32 31 30 | 00 00 00 00 00 00 00 00 |.0000210|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 3c 68 74 6d 6c 3e 0a 3c | 68 65 61 64 3e 0a 3c 74 |<html>.<|head>.<t|
|00000e10| 69 74 6c 65 3e 20 69 6e | 74 65 72 6e 65 74 20 2f |itle> in|ternet /|
|00000e20| 68 6f 6d 65 2f 64 61 74 | 61 6c 65 73 73 2f 63 68 |home/dat|aless/ch|
|00000e30| 69 65 66 2f 61 70 70 6c | 65 74 73 2f 69 6e 74 65 |ief/appl|ets/inte|
|00000e40| 72 6e 65 74 2f 49 4e 47 | 5a 50 32 36 41 2f 49 4e |rnet/ING|ZP26A/IN|
|00000e50| 47 5a 50 32 36 41 2e 68 | 74 6d 6c 20 3c 2f 74 69 |GZP26A.h|tml </ti|
|00000e60| 74 6c 65 3e 0a 3c 2f 68 | 65 61 64 3e 0a 3c 62 6f |tle>.</h|ead>.<bo|
|00000e70| 64 79 3e 0a 3c 68 33 3e | 20 55 6e 69 71 75 65 20 |dy>.<h3>| Unique |
|00000e80| 49 44 3a 20 49 4e 47 5a | 50 32 36 41 20 3c 2f 68 |ID: INGZ|P26A </h|
|00000e90| 33 3e 0a 3c 68 33 3e 20 | 43 61 74 65 67 6f 72 79 |3>.<h3> |Category|
|00000ea0| 20 3a 20 69 6e 74 65 72 | 6e 65 74 20 3c 2f 68 33 | : inter|net </h3|
|00000eb0| 3e 0a 3c 68 72 20 6e 6f | 73 68 61 64 65 3e 3c 62 |>.<hr no|shade><b|
|00000ec0| 72 3e 0a 3c 69 6d 67 20 | 73 72 63 3d 22 2e 2e 2f |r>.<img |src="../|
|00000ed0| 2e 2e 2f 69 6d 61 67 65 | 73 2f 6a 61 76 61 5f 69 |../image|s/java_i|
|00000ee0| 63 6f 6e 2e 67 69 66 22 | 20 61 6c 69 67 6e 3d 6c |con.gif"| align=l|
|00000ef0| 65 66 74 3e 0a 3c 62 72 | 3e 3c 62 72 3e 0a 3c 61 |eft>.<br|><br>.<a|
|00000f00| 20 68 72 65 66 3d 22 61 | 70 70 6c 65 74 2e 68 74 | href="a|pplet.ht|
|00000f10| 6d 6c 22 3e 20 4c 61 75 | 6e 63 68 20 41 70 70 6c |ml"> Lau|nch Appl|
|00000f20| 65 74 20 20 3c 2f 61 3e | 7c 3c 61 20 68 72 65 66 |et </a>||<a href|
|00000f30| 3d 22 2e 2e 2f 69 6e 74 | 65 72 6e 65 74 2e 68 74 |="../int|ernet.ht|
|00000f40| 6d 6c 22 3e 20 42 61 63 | 6b 20 3c 2f 61 3e 0a 00 |ml"> Bac|k </a>..|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 69 6e 74 65 72 6e 65 74 | 2f 49 4e 47 5a 50 32 36 |internet|/INGZP26|
|00001010| 41 2f 41 62 6f 75 74 50 | 6f 70 75 70 2e 6a 61 76 |A/AboutP|opup.jav|
|00001020| 61 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |a.......|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 30 |....0100|644.0000|
|00001070| 30 30 30 00 30 30 30 30 | 30 30 31 00 30 30 30 30 |000.0000|001.0000|
|00001080| 30 30 30 35 34 31 30 00 | 30 36 31 35 30 34 32 33 |0005410.|06150423|
|00001090| 37 36 30 00 30 30 31 37 | 31 35 37 00 30 00 00 00 |760.0017|157.0...|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 75 73 74 61 72 00 30 | 30 72 6f 6f 74 00 00 00 |.ustar.0|0root...|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 6f 74 68 65 72 00 00 |........|.other..|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 30 34 30 |........|.0000040|
|00001150| 00 30 30 30 30 32 31 30 | 00 00 00 00 00 00 00 00 |.0000210|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 2f 2a 20 24 49 64 3a 20 | 41 62 6f 75 74 50 6f 70 |/* $Id: |AboutPop|
|00001210| 75 70 2e 6a 61 76 61 2c | 76 20 31 2e 32 20 31 39 |up.java,|v 1.2 19|
|00001220| 39 36 2f 30 33 2f 33 31 | 20 31 31 3a 34 33 3a 30 |96/03/31| 11:43:0|
|00001230| 32 20 64 6a 75 6e 20 45 | 78 70 20 64 6a 75 6e 20 |2 djun E|xp djun |
|00001240| 24 0a 0a 20 20 20 46 69 | 6c 65 3a 20 41 62 6f 75 |$.. Fi|le: Abou|
|00001250| 74 50 6f 70 75 70 2e 6a | 61 76 61 0a 0a 20 20 20 |tPopup.j|ava.. |
|00001260| 41 75 74 68 6f 72 3a 20 | 44 6a 75 6e 20 4d 2e 20 |Author: |Djun M. |
|00001270| 4b 69 6d 0a 20 20 20 43 | 6f 70 79 72 69 67 68 74 |Kim. C|opyright|
|00001280| 20 28 63 29 20 31 39 39 | 36 20 44 6a 75 6e 20 4d | (c) 199|6 Djun M|
|00001290| 2e 20 4b 69 6d 2e 20 20 | 41 6c 6c 20 72 69 67 68 |. Kim. |All righ|
|000012a0| 74 73 20 72 65 73 65 72 | 76 65 64 2e 0a 0a 20 20 |ts reser|ved... |
|000012b0| 20 54 68 69 73 20 70 6f | 70 73 20 75 70 20 61 20 | This po|ps up a |
|000012c0| 66 72 61 6d 65 20 77 69 | 74 68 20 61 6e 20 22 41 |frame wi|th an "A|
|000012d0| 62 6f 75 74 20 74 68 69 | 73 20 61 70 70 6c 65 74 |bout thi|s applet|
|000012e0| 22 20 6d 65 73 73 61 67 | 65 2e 0a 2a 2f 0a 0a 69 |" messag|e..*/..i|
|000012f0| 6d 70 6f 72 74 20 6a 61 | 76 61 2e 61 77 74 2e 2a |mport ja|va.awt.*|
|00001300| 3b 0a 0a 70 75 62 6c 69 | 63 20 63 6c 61 73 73 20 |;..publi|c class |
|00001310| 41 62 6f 75 74 50 6f 70 | 75 70 20 65 78 74 65 6e |AboutPop|up exten|
|00001320| 64 73 20 46 72 61 6d 65 | 20 7b 0a 0a 20 20 20 20 |ds Frame| {.. |
|00001330| 4d 61 70 49 6e 66 6f 20 | 70 61 72 65 6e 74 3b 0a |MapInfo |parent;.|
|00001340| 20 20 20 20 70 72 69 76 | 61 74 65 20 44 69 73 70 | priv|ate Disp|
|00001350| 6c 61 79 41 72 65 61 20 | 6d 65 73 73 61 67 65 5f |layArea |message_|
|00001360| 61 72 65 61 3b 0a 0a 20 | 20 20 20 2f 2f 20 43 6f |area;.. | // Co|
|00001370| 6e 73 74 72 75 63 74 6f | 72 20 20 20 20 0a 20 20 |nstructo|r . |
|00001380| 20 20 41 62 6f 75 74 50 | 6f 70 75 70 28 4d 61 70 | AboutP|opup(Map|
|00001390| 49 6e 66 6f 20 74 61 72 | 67 65 74 29 20 7b 20 20 |Info tar|get) { |
|000013a0| 20 20 20 20 20 20 20 20 | 20 0a 09 73 75 70 65 72 | | ..super|
|000013b0| 28 22 41 62 6f 75 74 20 | 74 68 69 73 20 61 70 70 |("About |this app|
|000013c0| 6c 65 74 3a 22 29 3b 0a | 20 20 20 20 20 20 20 20 |let:");.| |
|000013d0| 74 68 69 73 2e 70 61 72 | 65 6e 74 20 3d 20 74 61 |this.par|ent = ta|
|000013e0| 72 67 65 74 3b 09 09 09 | 2f 2f 20 67 65 74 20 6f |rget;...|// get o|
|000013f0| 75 72 20 70 61 72 65 6e | 74 0a 09 73 65 74 42 61 |ur paren|t..setBa|
|00001400| 63 6b 67 72 6f 75 6e 64 | 28 43 6f 6c 6f 72 2e 6c |ckground|(Color.l|
|00001410| 69 67 68 74 47 72 61 79 | 29 3b 0a 20 09 6d 65 73 |ightGray|);. .mes|
|00001420| 73 61 67 65 5f 61 72 65 | 61 20 3d 20 6e 65 77 20 |sage_are|a = new |
|00001430| 44 69 73 70 6c 61 79 41 | 72 65 61 28 22 64 69 73 |DisplayA|rea("dis|
|00001440| 70 6c 61 79 5f 61 72 65 | 61 22 2c 20 74 68 69 73 |play_are|a", this|
|00001450| 2c 20 70 61 72 65 6e 74 | 29 3b 0a 09 72 65 73 69 |, parent|);..resi|
|00001460| 7a 65 28 33 36 30 2c 20 | 32 34 30 29 3b 0a 09 50 |ze(360, |240);..P|
|00001470| 6f 69 6e 74 20 70 20 3d | 20 70 61 72 65 6e 74 2e |oint p =| parent.|
|00001480| 6c 6f 63 61 74 69 6f 6e | 28 29 3b 0a 09 6d 6f 76 |location|();..mov|
|00001490| 65 28 70 2e 78 20 2b 20 | 33 30 30 2c 20 70 2e 79 |e(p.x + |300, p.y|
|000014a0| 20 2b 20 31 30 30 29 3b | 0a 09 73 65 74 4c 61 79 | + 100);|..setLay|
|000014b0| 6f 75 74 28 6e 65 77 20 | 47 72 69 64 4c 61 79 6f |out(new |GridLayo|
|000014c0| 75 74 28 31 2c 31 29 29 | 3b 0a 09 61 64 64 28 6d |ut(1,1))|;..add(m|
|000014d0| 65 73 73 61 67 65 5f 61 | 72 65 61 29 3b 0a 20 20 |essage_a|rea);. |
|000014e0| 20 20 7d 0a 7d 0a 0a 0a | 63 6c 61 73 73 20 44 69 | }.}...|class Di|
|000014f0| 73 70 6c 61 79 41 72 65 | 61 20 65 78 74 65 6e 64 |splayAre|a extend|
|00001500| 73 20 67 72 69 64 50 61 | 6e 65 6c 20 7b 0a 0a 20 |s gridPa|nel {.. |
|00001510| 20 20 20 66 69 6e 61 6c | 20 69 6e 74 20 52 45 4d | final| int REM|
|00001520| 4e 20 3d 20 47 72 69 64 | 42 61 67 43 6f 6e 73 74 |N = Grid|BagConst|
|00001530| 72 61 69 6e 74 73 2e 52 | 45 4d 41 49 4e 44 45 52 |raints.R|EMAINDER|
|00001540| 3b 0a 20 20 20 20 42 75 | 74 74 6f 6e 20 63 6c 6f |;. Bu|tton clo|
|00001550| 73 65 3b 0a 0a 20 20 20 | 20 44 69 73 70 6c 61 79 |se;.. | Display|
|00001560| 41 72 65 61 28 53 74 72 | 69 6e 67 20 6c 61 62 65 |Area(Str|ing labe|
|00001570| 6c 2c 20 43 6f 6e 74 61 | 69 6e 65 72 20 74 61 72 |l, Conta|iner tar|
|00001580| 67 65 74 2c 20 4d 61 70 | 49 6e 66 6f 20 70 61 72 |get, Map|Info par|
|00001590| 65 6e 74 29 20 7b 0a 09 | 73 75 70 65 72 28 6c 61 |ent) {..|super(la|
|000015a0| 62 65 6c 2c 20 74 61 72 | 67 65 74 29 3b 0a 09 43 |bel, tar|get);..C|
|000015b0| 65 6e 74 65 72 65 64 54 | 65 78 74 20 64 69 73 70 |enteredT|ext disp|
|000015c0| 6c 61 79 20 3d 20 6e 65 | 77 20 43 65 6e 74 65 72 |lay = ne|w Center|
|000015d0| 65 64 54 65 78 74 28 29 | 3b 09 0a 09 2f 2f 09 20 |edText()|;...//. |
|000015e0| 20 20 20 20 4e 61 6d 65 | 09 67 72 69 64 78 09 67 | Name|.gridx.g|
|000015f0| 72 69 64 79 09 57 65 69 | 67 68 74 58 09 57 65 69 |ridy.Wei|ghtX.Wei|
|00001600| 67 68 74 59 09 67 72 69 | 64 57 09 67 72 69 64 48 |ghtY.gri|dW.gridH|
|00001610| 0a 09 6d 61 6b 65 5f 70 | 61 6e 65 6c 28 20 20 64 |..make_p|anel( d|
|00001620| 69 73 70 6c 61 79 2c 20 | 09 31 2c 09 31 2c 09 31 |isplay, |.1,.1,.1|
|00001630| 2e 30 2c 09 31 2e 30 2c | 09 52 45 4d 4e 2c 09 31 |.0,.1.0,|.REMN,.1|
|00001640| 29 3b 0a 09 63 6c 6f 73 | 65 20 3d 20 0a 09 6d 61 |);..clos|e = ..ma|
|00001650| 6b 65 5f 62 75 74 74 6f | 6e 28 22 4f 4b 22 2c 09 |ke_butto|n("OK",.|
|00001660| 31 2c 20 09 32 2c 09 31 | 2e 30 2c 09 30 2e 30 2c |1, .2,.1|.0,.0.0,|
|00001670| 09 52 45 4d 4e 2c 20 09 | 52 45 4d 4e 29 3b 20 0a |.REMN, .|REMN); .|
|00001680| 20 20 20 20 7d 0a 0a 20 | 20 20 20 70 75 62 6c 69 | }.. | publi|
|00001690| 63 20 62 6f 6f 6c 65 61 | 6e 20 61 63 74 69 6f 6e |c boolea|n action|
|000016a0| 28 45 76 65 6e 74 20 65 | 76 74 2c 20 4f 62 6a 65 |(Event e|vt, Obje|
|000016b0| 63 74 20 61 72 67 29 20 | 7b 0a 09 69 66 20 28 65 |ct arg) |{..if (e|
|000016c0| 76 74 2e 74 61 72 67 65 | 74 20 69 6e 73 74 61 6e |vt.targe|t instan|
|000016d0| 63 65 6f 66 20 42 75 74 | 74 6f 6e 29 20 7b 0a 09 |ceof But|ton) {..|
|000016e0| 20 20 20 20 42 75 74 74 | 6f 6e 20 62 20 3d 20 28 | Butt|on b = (|
|000016f0| 42 75 74 74 6f 6e 29 65 | 76 74 2e 74 61 72 67 65 |Button)e|vt.targe|
|00001700| 74 3b 0a 09 20 20 20 20 | 69 66 20 28 62 20 3d 3d |t;.. |if (b ==|
|00001710| 20 63 6c 6f 73 65 29 20 | 7b 0a 09 09 69 66 20 28 | close) |{...if (|
|00001720| 67 65 74 50 61 72 65 6e | 74 28 29 2e 69 73 53 68 |getParen|t().isSh|
|00001730| 6f 77 69 6e 67 28 29 29 | 20 0a 09 09 20 20 20 67 |owing())| ... g|
|00001740| 65 74 50 61 72 65 6e 74 | 28 29 2e 68 69 64 65 28 |etParent|().hide(|
|00001750| 29 3b 0a 09 20 20 20 20 | 7d 0a 09 7d 0a 09 72 65 |);.. |}..}..re|
|00001760| 74 75 72 6e 20 74 72 75 | 65 3b 0a 20 20 20 7d 0a |turn tru|e;. }.|
|00001770| 7d 0a 0a 0a 63 6c 61 73 | 73 20 43 65 6e 74 65 72 |}...clas|s Center|
|00001780| 65 64 54 65 78 74 20 65 | 78 74 65 6e 64 73 20 50 |edText e|xtends P|
|00001790| 61 6e 65 6c 20 7b 0a 0a | 20 20 20 20 70 72 69 76 |anel {..| priv|
|000017a0| 61 74 65 20 46 6f 6e 74 | 20 62 6f 6c 64 20 09 09 |ate Font| bold ..|
|000017b0| 09 3d 20 6e 65 77 20 46 | 6f 6e 74 28 22 54 69 6d |.= new F|ont("Tim|
|000017c0| 65 73 52 6f 6d 61 6e 22 | 2c 20 46 6f 6e 74 2e 42 |esRoman"|, Font.B|
|000017d0| 4f 4c 44 2c 20 31 38 29 | 3b 0a 20 20 20 20 70 72 |OLD, 18)|;. pr|
|000017e0| 69 76 61 74 65 20 46 6f | 6e 74 20 6d 65 64 20 09 |ivate Fo|nt med .|
|000017f0| 09 09 3d 20 6e 65 77 20 | 46 6f 6e 74 28 22 54 69 |..= new |Font("Ti|
|00001800| 6d 65 73 52 6f 6d 61 6e | 22 2c 20 46 6f 6e 74 2e |mesRoman|", Font.|
|00001810| 50 4c 41 49 4e 2c 20 31 | 38 29 3b 0a 20 20 20 20 |PLAIN, 1|8);. |
|00001820| 70 72 69 76 61 74 65 20 | 46 6f 6e 74 20 73 6d 61 |private |Font sma|
|00001830| 6c 6c 20 09 09 09 3d 20 | 6e 65 77 20 46 6f 6e 74 |ll ...= |new Font|
|00001840| 28 22 54 69 6d 65 73 52 | 6f 6d 61 6e 22 2c 20 46 |("TimesR|oman", F|
|00001850| 6f 6e 74 2e 50 4c 41 49 | 4e 2c 20 31 34 29 3b 0a |ont.PLAI|N, 14);.|
|00001860| 20 20 20 20 70 72 69 76 | 61 74 65 20 46 6f 6e 74 | priv|ate Font|
|00001870| 4d 65 74 72 69 63 73 20 | 62 6f 6c 64 5f 66 6d 20 |Metrics |bold_fm |
|00001880| 09 3d 20 67 65 74 46 6f | 6e 74 4d 65 74 72 69 63 |.= getFo|ntMetric|
|00001890| 73 28 62 6f 6c 64 29 3b | 0a 20 20 20 20 70 72 69 |s(bold);|. pri|
|000018a0| 76 61 74 65 20 46 6f 6e | 74 4d 65 74 72 69 63 73 |vate Fon|tMetrics|
|000018b0| 20 6d 65 64 5f 66 6d 20 | 09 09 3d 20 67 65 74 46 | med_fm |..= getF|
|000018c0| 6f 6e 74 4d 65 74 72 69 | 63 73 28 6d 65 64 29 3b |ontMetri|cs(med);|
|000018d0| 0a 20 20 20 20 70 72 69 | 76 61 74 65 20 46 6f 6e |. pri|vate Fon|
|000018e0| 74 4d 65 74 72 69 63 73 | 20 73 6d 61 6c 6c 5f 66 |tMetrics| small_f|
|000018f0| 6d 20 09 3d 20 67 65 74 | 46 6f 6e 74 4d 65 74 72 |m .= get|FontMetr|
|00001900| 69 63 73 28 73 6d 61 6c | 6c 29 3b 0a 20 20 20 20 |ics(smal|l);. |
|00001910| 70 72 69 76 61 74 65 20 | 53 74 72 69 6e 67 20 6e |private |String n|
|00001920| 61 6d 65 5f 73 74 72 69 | 6e 67 20 09 09 3d 20 22 |ame_stri|ng ..= "|
|00001930| 4d 61 70 49 6e 66 6f 20 | 64 65 6d 6f 20 31 2e 30 |MapInfo |demo 1.0|
|00001940| 22 3b 0a 20 20 20 20 70 | 72 69 76 61 74 65 20 53 |";. p|rivate S|
|00001950| 74 72 69 6e 67 20 61 75 | 74 68 6f 72 5f 73 74 72 |tring au|thor_str|
|00001960| 69 6e 67 20 09 3d 20 22 | 43 6f 70 79 72 69 67 68 |ing .= "|Copyrigh|
|00001970| 74 20 28 63 29 20 31 39 | 39 36 20 20 44 6a 75 6e |t (c) 19|96 Djun|
|00001980| 20 4d 2e 20 4b 69 6d 22 | 3b 0a 20 20 20 20 70 72 | M. Kim"|;. pr|
|00001990| 69 76 61 74 65 20 53 74 | 72 69 6e 67 20 63 72 65 |ivate St|ring cre|
|000019a0| 64 69 74 73 5f 73 74 72 | 69 6e 67 20 09 3d 20 22 |dits_str|ing .= "|
|000019b0| 4d 61 70 20 63 6f 75 72 | 74 65 73 79 20 6f 66 20 |Map cour|tesy of |
|000019c0| 55 42 43 20 43 61 6d 70 | 75 73 20 50 6c 61 6e 6e |UBC Camp|us Plann|
|000019d0| 69 6e 67 20 26 20 44 65 | 76 65 6c 6f 70 6d 65 6e |ing & De|velopmen|
|000019e0| 74 22 3b 0a 20 20 20 20 | 70 72 69 76 61 74 65 20 |t";. |private |
|000019f0| 53 74 72 69 6e 67 20 69 | 6e 66 6f 5f 31 09 20 09 |String i|nfo_1. .|
|00001a00| 3d 20 22 53 65 6e 64 20 | 65 2d 6d 61 69 6c 20 74 |= "Send |e-mail t|
|00001a10| 6f 20 64 6a 75 6e 40 6d | 61 74 68 2e 75 62 63 2e |o djun@m|ath.ubc.|
|00001a20| 63 61 20 66 6f 72 20 6d | 6f 72 65 22 3b 0a 20 20 |ca for m|ore";. |
|00001a30| 20 20 70 72 69 76 61 74 | 65 20 53 74 72 69 6e 67 | privat|e String|
|00001a40| 20 69 6e 66 6f 5f 32 09 | 20 09 3d 20 22 69 6e 66 | info_2.| .= "inf|
|00001a50| 6f 72 6d 61 74 69 6f 6e | 20 61 62 6f 75 74 20 74 |ormation| about t|
|00001a60| 68 69 73 20 70 72 6f 6a | 65 63 74 2e 22 3b 0a 0a |his proj|ect.";..|
|00001a70| 0a 20 20 20 20 70 75 62 | 6c 69 63 20 76 6f 69 64 |. pub|lic void|
|00001a80| 20 64 72 61 77 43 65 6e | 74 65 72 65 64 28 53 74 | drawCen|tered(St|
|00001a90| 72 69 6e 67 20 73 2c 20 | 43 6f 6e 74 61 69 6e 65 |ring s, |Containe|
|00001aa0| 72 20 74 61 72 67 65 74 | 2c 20 47 72 61 70 68 69 |r target|, Graphi|
|00001ab0| 63 73 20 67 2c 20 46 6f | 6e 74 20 66 2c 20 69 6e |cs g, Fo|nt f, in|
|00001ac0| 74 20 76 6f 66 66 73 65 | 74 29 20 7b 0a 09 46 6f |t voffse|t) {..Fo|
|00001ad0| 6e 74 4d 65 74 72 69 63 | 73 20 66 6d 20 09 3d 20 |ntMetric|s fm .= |
|00001ae0| 67 65 74 46 6f 6e 74 4d | 65 74 72 69 63 73 28 66 |getFontM|etrics(f|
|00001af0| 29 3b 0a 09 67 2e 73 65 | 74 46 6f 6e 74 28 66 29 |);..g.se|tFont(f)|
|00001b00| 3b 0a 09 69 6e 74 20 78 | 73 74 61 72 74 20 3d 20 |;..int x|start = |
|00001b10| 28 74 61 72 67 65 74 2e | 73 69 7a 65 28 29 2e 77 |(target.|size().w|
|00001b20| 69 64 74 68 20 2d 20 66 | 6d 2e 73 74 72 69 6e 67 |idth - f|m.string|
|00001b30| 57 69 64 74 68 28 73 29 | 29 20 2f 20 32 3b 0a 09 |Width(s)|) / 2;..|
|00001b40| 69 6e 74 20 79 73 74 61 | 72 74 20 3d 20 28 74 61 |int ysta|rt = (ta|
|00001b50| 72 67 65 74 2e 73 69 7a | 65 28 29 2e 68 65 69 67 |rget.siz|e().heig|
|00001b60| 68 74 20 2d 20 66 6d 2e | 67 65 74 48 65 69 67 68 |ht - fm.|getHeigh|
|00001b70| 74 28 29 29 20 2f 20 36 | 3b 0a 09 67 2e 64 72 61 |t()) / 6|;..g.dra|
|00001b80| 77 53 74 72 69 6e 67 28 | 73 2c 20 78 73 74 61 72 |wString(|s, xstar|
|00001b90| 74 2c 20 79 73 74 61 72 | 74 20 2b 20 76 6f 66 66 |t, ystar|t + voff|
|00001ba0| 73 65 74 29 3b 09 0a 20 | 20 20 20 7d 0a 0a 20 20 |set);.. | }.. |
|00001bb0| 20 20 70 75 62 6c 69 63 | 20 76 6f 69 64 20 70 61 | public| void pa|
|00001bc0| 69 6e 74 28 47 72 61 70 | 68 69 63 73 20 67 29 20 |int(Grap|hics g) |
|00001bd0| 7b 0a 09 73 65 74 42 61 | 63 6b 67 72 6f 75 6e 64 |{..setBa|ckground|
|00001be0| 28 43 6f 6c 6f 72 2e 77 | 68 69 74 65 29 3b 0a 09 |(Color.w|hite);..|
|00001bf0| 73 65 74 46 6f 72 65 67 | 72 6f 75 6e 64 28 43 6f |setForeg|round(Co|
|00001c00| 6c 6f 72 2e 6c 69 67 68 | 74 47 72 61 79 29 3b 0a |lor.ligh|tGray);.|
|00001c10| 09 64 72 61 77 43 65 6e | 74 65 72 65 64 28 6e 61 |.drawCen|tered(na|
|00001c20| 6d 65 5f 73 74 72 69 6e | 67 2c 20 74 68 69 73 2c |me_strin|g, this,|
|00001c30| 20 67 2c 20 62 6f 6c 64 | 2c 20 31 30 29 3b 09 0a | g, bold|, 10);..|
|00001c40| 09 64 72 61 77 43 65 6e | 74 65 72 65 64 28 61 75 |.drawCen|tered(au|
|00001c50| 74 68 6f 72 5f 73 74 72 | 69 6e 67 2c 20 74 68 69 |thor_str|ing, thi|
|00001c60| 73 2c 20 67 2c 20 6d 65 | 64 2c 20 33 30 20 29 3b |s, g, me|d, 30 );|
|00001c70| 09 0a 09 64 72 61 77 43 | 65 6e 74 65 72 65 64 28 |...drawC|entered(|
|00001c80| 63 72 65 64 69 74 73 5f | 73 74 72 69 6e 67 2c 20 |credits_|string, |
|00001c90| 74 68 69 73 2c 20 67 2c | 20 73 6d 61 6c 6c 2c 20 |this, g,| small, |
|00001ca0| 35 30 29 3b 09 0a 09 64 | 72 61 77 43 65 6e 74 65 |50);...d|rawCente|
|00001cb0| 72 65 64 28 69 6e 66 6f | 5f 31 2c 20 74 68 69 73 |red(info|_1, this|
|00001cc0| 2c 20 67 2c 20 73 6d 61 | 6c 6c 2c 20 36 35 29 3b |, g, sma|ll, 65);|
|00001cd0| 09 0a 09 64 72 61 77 43 | 65 6e 74 65 72 65 64 28 |...drawC|entered(|
|00001ce0| 69 6e 66 6f 5f 32 2c 20 | 74 68 69 73 2c 20 67 2c |info_2, |this, g,|
|00001cf0| 20 73 6d 61 6c 6c 2c 20 | 38 30 29 3b 09 0a 20 20 | small, |80);.. |
|00001d00| 20 20 7d 0a 7d 0a 0a 0a | 00 00 00 00 00 00 00 00 | }.}...|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 69 6e 74 65 72 6e 65 74 | 2f 49 4e 47 5a 50 32 36 |internet|/INGZP26|
|00001e10| 41 2f 43 61 72 72 69 65 | 72 2e 6a 61 76 61 00 00 |A/Carrie|r.java..|
|00001e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 30 |....0100|644.0000|
|00001e70| 30 30 30 00 30 30 30 30 | 30 30 31 00 30 30 30 30 |000.0000|001.0000|
|00001e80| 30 30 30 33 37 36 34 00 | 30 36 31 35 30 34 32 33 |0003764.|06150423|
|00001e90| 37 36 30 00 30 30 31 36 | 34 36 32 00 30 00 00 00 |760.0016|462.0...|
|00001ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f00| 00 75 73 74 61 72 00 30 | 30 72 6f 6f 74 00 00 00 |.ustar.0|0root...|
|00001f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f20| 00 00 00 00 00 00 00 00 | 00 6f 74 68 65 72 00 00 |........|.other..|
|00001f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f40| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 30 34 30 |........|.0000040|
|00001f50| 00 30 30 30 30 32 31 30 | 00 00 00 00 00 00 00 00 |.0000210|........|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002000| 2f 2a 20 24 49 64 3a 20 | 43 61 72 72 69 65 72 2e |/* $Id: |Carrier.|
|00002010| 6a 61 76 61 2c 76 20 31 | 2e 33 20 31 39 39 36 2f |java,v 1|.3 1996/|
|00002020| 30 33 2f 33 31 20 31 31 | 3a 34 33 3a 30 32 20 64 |03/31 11|:43:02 d|
|00002030| 6a 75 6e 20 45 78 70 20 | 64 6a 75 6e 20 24 0a 0a |jun Exp |djun $..|
|00002040| 20 20 20 46 69 6c 65 3a | 20 43 61 72 72 69 65 72 | File:| Carrier|
|00002050| 2e 6a 61 76 61 0a 0a 20 | 20 20 44 65 66 69 6e 65 |.java.. | Define|
|00002060| 73 20 74 68 65 20 63 6c | 61 73 73 20 43 61 72 72 |s the cl|ass Carr|
|00002070| 69 65 72 2c 20 77 68 69 | 63 68 20 65 78 74 65 6e |ier, whi|ch exten|
|00002080| 64 73 20 6c 6f 63 61 74 | 69 6f 6e 2e 20 20 41 20 |ds locat|ion. A |
|00002090| 63 61 72 72 69 65 72 0a | 20 20 20 69 73 20 61 20 |carrier.| is a |
|000020a0| 6c 69 6e 65 61 72 20 6c | 6f 63 61 74 69 6f 6e 2c |linear l|ocation,|
|000020b0| 20 77 69 74 68 20 61 20 | 73 74 61 72 74 20 61 6e | with a |start an|
|000020c0| 64 20 65 6e 64 20 70 6f | 69 6e 74 2c 20 77 68 69 |d end po|int, whi|
|000020d0| 63 68 20 63 61 72 72 69 | 65 73 0a 20 20 20 73 6f |ch carri|es. so|
|000020e0| 6d 65 74 68 69 6e 67 3a | 20 66 6f 72 20 65 78 61 |mething:| for exa|
|000020f0| 6d 70 6c 65 2c 20 70 61 | 74 68 73 2c 20 73 74 72 |mple, pa|ths, str|
|00002100| 65 65 74 73 2c 20 65 6c | 65 63 74 72 69 63 61 6c |eets, el|ectrical|
|00002110| 20 6f 72 20 64 61 74 61 | 20 6c 69 6e 65 73 2c 0a | or data| lines,.|
|00002120| 20 20 20 61 72 65 20 61 | 6c 6c 20 63 61 72 72 69 | are a|ll carri|
|00002130| 65 72 73 2e 20 20 43 61 | 72 72 69 65 72 73 20 61 |ers. Ca|rriers a|
|00002140| 6c 6c 20 68 61 76 65 20 | 61 20 6c 65 6e 67 74 68 |ll have |a length|
|00002150| 2c 20 61 6e 64 20 61 20 | 63 61 70 61 63 69 74 79 |, and a |capacity|
|00002160| 2e 0a 0a 20 20 20 41 75 | 74 68 6f 72 3a 20 44 6a |... Au|thor: Dj|
|00002170| 75 6e 20 4d 2e 20 4b 69 | 6d 0a 20 20 20 43 6f 70 |un M. Ki|m. Cop|
|00002180| 79 72 69 67 68 74 20 28 | 63 29 20 31 39 39 36 20 |yright (|c) 1996 |
|00002190| 44 6a 75 6e 20 4d 2e 20 | 4b 69 6d 2e 20 20 41 6c |Djun M. |Kim. Al|
|000021a0| 6c 20 72 69 67 68 74 73 | 20 72 65 73 65 72 76 65 |l rights| reserve|
|000021b0| 64 2e 0a 0a 0a 2a 2f 0a | 0a 69 6d 70 6f 72 74 20 |d....*/.|.import |
|000021c0| 4d 61 70 3b 0a 69 6d 70 | 6f 72 74 20 4d 61 70 45 |Map;.imp|ort MapE|
|000021d0| 72 72 6f 72 3b 0a 69 6d | 70 6f 72 74 20 6a 61 76 |rror;.im|port jav|
|000021e0| 61 2e 6e 65 74 2e 2a 3b | 0a 69 6d 70 6f 72 74 20 |a.net.*;|.import |
|000021f0| 6a 61 76 61 2e 61 77 74 | 2e 2a 3b 0a 69 6d 70 6f |java.awt|.*;.impo|
|00002200| 72 74 20 6a 61 76 61 2e | 75 74 69 6c 2e 56 65 63 |rt java.|util.Vec|
|00002210| 74 6f 72 3b 0a 0a 70 75 | 62 6c 69 63 20 63 6c 61 |tor;..pu|blic cla|
|00002220| 73 73 20 43 61 72 72 69 | 65 72 20 65 78 74 65 6e |ss Carri|er exten|
|00002230| 64 73 20 4c 6f 63 61 74 | 69 6f 6e 20 7b 0a 0a 20 |ds Locat|ion {.. |
|00002240| 20 20 20 70 72 6f 74 65 | 63 74 65 64 20 4c 6f 63 | prote|cted Loc|
|00002250| 61 74 69 6f 6e 20 73 6f | 75 72 63 65 3b 0a 20 20 |ation so|urce;. |
|00002260| 20 20 70 72 6f 74 65 63 | 74 65 64 20 4c 6f 63 61 | protec|ted Loca|
|00002270| 74 69 6f 6e 20 73 69 6e | 6b 3b 0a 20 20 20 20 70 |tion sin|k;. p|
|00002280| 72 6f 74 65 63 74 65 64 | 20 49 6e 74 65 67 65 72 |rotected| Integer|
|00002290| 20 6c 65 6e 67 74 68 3b | 0a 20 20 20 20 70 72 6f | length;|. pro|
|000022a0| 74 65 63 74 65 64 20 49 | 6e 74 65 67 65 72 20 63 |tected I|nteger c|
|000022b0| 61 70 61 63 69 74 79 3b | 0a 20 20 20 20 70 72 6f |apacity;|. pro|
|000022c0| 74 65 63 74 65 64 20 53 | 74 72 69 6e 67 20 64 65 |tected S|tring de|
|000022d0| 73 63 72 69 70 74 69 6f | 6e 3b 0a 0a 20 20 20 20 |scriptio|n;.. |
|000022e0| 70 72 69 76 61 74 65 20 | 66 69 6e 61 6c 20 62 6f |private |final bo|
|000022f0| 6f 6c 65 61 6e 20 64 69 | 73 70 6c 61 79 61 62 6c |olean di|splayabl|
|00002300| 65 20 3d 20 66 61 6c 73 | 65 3b 0a 0a 20 20 20 20 |e = fals|e;.. |
|00002310| 2f 2f 20 43 6f 6e 73 74 | 72 75 63 74 6f 72 0a 20 |// Const|ructor. |
|00002320| 20 20 20 43 61 72 72 69 | 65 72 28 4d 61 70 20 74 | Carri|er(Map t|
|00002330| 61 72 67 65 74 2c 20 4c | 6f 63 61 74 69 6f 6e 20 |arget, L|ocation |
|00002340| 73 6f 75 72 63 65 2c 20 | 4c 6f 63 61 74 69 6f 6e |source, |Location|
|00002350| 20 73 69 6e 6b 2c 20 69 | 6e 74 20 6c 65 6e 67 74 | sink, i|nt lengt|
|00002360| 68 2c 20 69 6e 74 20 63 | 61 70 61 63 69 74 79 29 |h, int c|apacity)|
|00002370| 20 7b 0a 09 73 75 70 65 | 72 28 74 61 72 67 65 74 | {..supe|r(target|
|00002380| 2c 20 73 6f 75 72 63 65 | 2e 67 65 74 42 61 73 65 |, source|.getBase|
|00002390| 28 29 2e 78 2c 20 73 6f | 75 72 63 65 2e 67 65 74 |().x, so|urce.get|
|000023a0| 42 61 73 65 28 29 2e 79 | 29 3b 0a 09 73 75 70 65 |Base().y|);..supe|
|000023b0| 72 2e 70 61 72 65 6e 74 | 20 3d 20 74 61 72 67 65 |r.parent| = targe|
|000023c0| 74 3b 0a 09 6e 61 6d 65 | 20 3d 20 6e 65 77 20 53 |t;..name| = new S|
|000023d0| 74 72 69 6e 67 28 29 3b | 09 0a 09 72 65 67 69 6f |tring();|...regio|
|000023e0| 6e 20 3d 20 6e 65 77 20 | 52 65 67 69 6f 6e 28 29 |n = new |Region()|
|000023f0| 3b 0a 20 20 20 20 7d 0a | 0a 20 20 20 20 2f 2f 20 |;. }.|. // |
|00002400| 41 63 63 65 73 73 6f 72 | 20 6d 65 74 68 6f 64 73 |Accessor| methods|
|00002410| 0a 20 20 20 20 70 75 62 | 6c 69 63 20 4c 6f 63 61 |. pub|lic Loca|
|00002420| 74 69 6f 6e 20 67 65 74 | 53 6f 75 72 63 65 28 29 |tion get|Source()|
|00002430| 20 7b 0a 09 72 65 74 75 | 72 6e 20 73 6f 75 72 63 | {..retu|rn sourc|
|00002440| 65 3b 0a 20 20 20 20 7d | 0a 20 20 20 20 70 75 62 |e;. }|. pub|
|00002450| 6c 69 63 20 4c 6f 63 61 | 74 69 6f 6e 20 67 65 74 |lic Loca|tion get|
|00002460| 53 69 6e 6b 28 29 20 7b | 0a 09 72 65 74 75 72 6e |Sink() {|..return|
|00002470| 20 73 69 6e 6b 3b 0a 20 | 20 20 20 7d 0a 20 20 20 | sink;. | }. |
|00002480| 20 70 75 62 6c 69 63 20 | 49 6e 74 65 67 65 72 20 | public |Integer |
|00002490| 67 65 74 4c 65 6e 67 74 | 68 28 29 20 7b 0a 09 72 |getLengt|h() {..r|
|000024a0| 65 74 75 72 6e 20 6c 65 | 6e 67 74 68 3b 0a 20 20 |eturn le|ngth;. |
|000024b0| 20 20 7d 0a 0a 20 20 20 | 20 70 75 62 6c 69 63 20 | }.. | public |
|000024c0| 49 6e 74 65 67 65 72 20 | 67 65 74 43 61 70 61 63 |Integer |getCapac|
|000024d0| 69 74 79 28 29 20 7b 0a | 09 72 65 74 75 72 6e 20 |ity() {.|.return |
|000024e0| 63 61 70 61 63 69 74 79 | 3b 0a 20 20 20 20 7d 0a |capacity|;. }.|
|000024f0| 0a 20 20 20 20 70 75 62 | 6c 69 63 20 53 74 72 69 |. pub|lic Stri|
|00002500| 6e 67 20 67 65 74 44 65 | 73 63 72 69 70 74 69 6f |ng getDe|scriptio|
|00002510| 6e 28 29 20 7b 0a 09 72 | 65 74 75 72 6e 20 64 65 |n() {..r|eturn de|
|00002520| 73 63 72 69 70 74 69 6f | 6e 3b 0a 20 20 20 20 7d |scriptio|n;. }|
|00002530| 0a 0a 20 20 20 20 70 75 | 62 6c 69 63 20 76 6f 69 |.. pu|blic voi|
|00002540| 64 20 73 68 6f 77 43 61 | 72 72 69 65 72 28 47 72 |d showCa|rrier(Gr|
|00002550| 61 70 68 69 63 73 20 67 | 29 20 7b 0a 09 67 2e 73 |aphics g|) {..g.s|
|00002560| 65 74 43 6f 6c 6f 72 28 | 43 6f 6c 6f 72 2e 72 65 |etColor(|Color.re|
|00002570| 64 29 3b 0a 09 67 2e 64 | 72 61 77 50 6f 6c 79 67 |d);..g.d|rawPolyg|
|00002580| 6f 6e 28 74 68 69 73 2e | 72 65 67 69 6f 6e 2e 70 |on(this.|region.p|
|00002590| 65 72 69 6d 29 3b 0a 20 | 20 20 20 7d 0a 7d 0a 0a |erim);. | }.}..|
|000025a0| 0a 2f 2a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |./*-----|--------|
|000025b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000025c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000025d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000025e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 09 43 6c 61 73 73 |--------|-..Class|
|000025f0| 20 74 6f 20 69 6d 70 6c | 65 6d 65 6e 74 20 22 6a | to impl|ement "j|
|00002600| 75 6e 63 74 69 6f 6e 73 | 22 20 62 65 74 77 65 65 |unctions|" betwee|
|00002610| 6e 20 63 61 72 72 69 65 | 72 73 0a 20 20 2d 2d 2d |n carrie|rs. ---|
|00002620| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002630| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002640| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002650| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002660| 2d 2d 2d 2a 2f 0a 0a 2f | 2f 20 41 20 6a 75 6e 63 |---*/../|/ A junc|
|00002670| 74 69 6f 6e 20 69 73 20 | 61 20 70 6c 61 63 65 20 |tion is |a place |
|00002680| 77 68 65 72 65 20 73 65 | 76 65 72 61 6c 20 63 61 |where se|veral ca|
|00002690| 72 72 69 65 72 73 20 63 | 6f 6d 65 20 74 6f 67 65 |rriers c|ome toge|
|000026a0| 74 68 65 72 2e 0a 63 6c | 61 73 73 20 4a 75 6e 63 |ther..cl|ass Junc|
|000026b0| 74 69 6f 6e 20 65 78 74 | 65 6e 64 73 20 4c 6f 63 |tion ext|ends Loc|
|000026c0| 61 74 69 6f 6e 20 7b 0a | 0a 20 20 20 20 70 72 6f |ation {.|. pro|
|000026d0| 74 65 63 74 65 64 20 66 | 69 6e 61 6c 20 62 6f 6f |tected f|inal boo|
|000026e0| 6c 65 61 6e 20 64 69 73 | 70 6c 61 79 61 62 6c 65 |lean dis|playable|
|000026f0| 20 3d 20 66 61 6c 73 65 | 3b 0a 20 20 0a 20 20 20 | = false|;. . |
|00002700| 20 2f 2f 20 63 6f 6e 73 | 74 72 75 63 74 6f 72 0a | // cons|tructor.|
|00002710| 20 20 20 20 4a 75 6e 63 | 74 69 6f 6e 28 4d 61 70 | Junc|tion(Map|
|00002720| 20 74 61 72 67 65 74 2c | 20 69 6e 74 20 78 2c 20 | target,| int x, |
|00002730| 69 6e 74 20 79 29 20 7b | 0a 09 73 75 70 65 72 28 |int y) {|..super(|
|00002740| 74 61 72 67 65 74 2c 20 | 78 2c 20 79 29 3b 0a 09 |target, |x, y);..|
|00002750| 73 75 70 65 72 2e 70 61 | 72 65 6e 74 20 3d 20 74 |super.pa|rent = t|
|00002760| 61 72 67 65 74 3b 0a 20 | 20 20 20 7d 0a 0a 20 20 |arget;. | }.. |
|00002770| 20 20 2f 2f 20 43 6f 6e | 73 74 72 75 63 74 6f 72 | // Con|structor|
|00002780| 20 2d 20 69 6e 69 74 69 | 61 6c 69 7a 65 20 62 61 | - initi|alize ba|
|00002790| 73 65 20 70 6f 69 6e 74 | 20 74 6f 20 28 30 2c 20 |se point| to (0, |
|000027a0| 30 29 0a 20 20 20 20 4a | 75 6e 63 74 69 6f 6e 28 |0). J|unction(|
|000027b0| 4d 61 70 20 74 61 72 67 | 65 74 29 20 7b 0a 09 73 |Map targ|et) {..s|
|000027c0| 75 70 65 72 28 74 61 72 | 67 65 74 2c 20 30 2c 20 |uper(tar|get, 0, |
|000027d0| 30 29 3b 0a 09 73 75 70 | 65 72 2e 70 61 72 65 6e |0);..sup|er.paren|
|000027e0| 74 20 3d 20 74 61 72 67 | 65 74 3b 0a 20 20 20 20 |t = targ|et;. |
|000027f0| 7d 0a 7d 0a 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.}.....|........|
|00002800| 69 6e 74 65 72 6e 65 74 | 2f 49 4e 47 5a 50 32 36 |internet|/INGZP26|
|00002810| 41 2f 43 74 72 6c 50 61 | 6e 65 6c 2e 6a 61 76 61 |A/CtrlPa|nel.java|
|00002820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002860| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 30 |....0100|644.0000|
|00002870| 30 30 30 00 30 30 30 30 | 30 30 31 00 30 30 30 30 |000.0000|001.0000|
|00002880| 30 30 32 34 30 36 33 00 | 30 36 31 35 30 34 32 33 |0024063.|06150423|
|00002890| 37 36 30 00 30 30 31 36 | 37 35 32 00 30 00 00 00 |760.0016|752.0...|
|000028a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002900| 00 75 73 74 61 72 00 30 | 30 72 6f 6f 74 00 00 00 |.ustar.0|0root...|
|00002910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002920| 00 00 00 00 00 00 00 00 | 00 6f 74 68 65 72 00 00 |........|.other..|
|00002930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002940| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 30 34 30 |........|.0000040|
|00002950| 00 30 30 30 30 32 31 30 | 00 00 00 00 00 00 00 00 |.0000210|........|
|00002960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a00| 2f 2a 20 24 49 64 3a 20 | 43 74 72 6c 50 61 6e 65 |/* $Id: |CtrlPane|
|00002a10| 6c 2e 6a 61 76 61 2c 76 | 20 31 2e 34 20 31 39 39 |l.java,v| 1.4 199|
|00002a20| 36 2f 30 33 2f 33 31 20 | 31 31 3a 34 33 3a 30 32 |6/03/31 |11:43:02|
|00002a30| 20 64 6a 75 6e 20 45 78 | 70 20 64 6a 75 6e 20 24 | djun Ex|p djun $|
|00002a40| 0a 0a 20 20 20 46 69 6c | 65 3a 20 43 74 72 6c 50 |.. Fil|e: CtrlP|
|00002a50| 61 6e 65 6c 2e 6a 61 76 | 61 0a 0a 20 20 20 41 75 |anel.jav|a.. Au|
|00002a60| 74 68 6f 72 3a 20 44 6a | 75 6e 20 4d 2e 20 4b 69 |thor: Dj|un M. Ki|
|00002a70| 6d 0a 20 20 20 43 6f 70 | 79 72 69 67 68 74 20 28 |m. Cop|yright (|
|00002a80| 63 29 20 31 39 39 36 20 | 44 6a 75 6e 20 4d 2e 20 |c) 1996 |Djun M. |
|00002a90| 4b 69 6d 2e 20 20 41 6c | 6c 20 72 69 67 68 74 73 |Kim. Al|l rights|
|00002aa0| 20 72 65 73 65 72 76 65 | 64 2e 0a 0a 20 20 20 4e | reserve|d... N|
|00002ab0| 6f 74 65 73 3a 0a 0a 20 | 20 20 54 68 69 6e 67 73 |otes:.. | Things|
|00002ac0| 20 74 6f 20 64 6f 3a 0a | 0a 20 20 20 20 20 20 2a | to do:.|. *|
|00002ad0| 09 41 64 64 20 74 68 65 | 20 61 62 69 6c 69 74 79 |.Add the| ability|
|00002ae0| 20 74 6f 20 77 6f 72 6b | 20 77 69 74 68 20 61 6e | to work| with an|
|00002af0| 64 20 64 69 73 70 6c 61 | 79 20 6d 75 6c 74 69 70 |d displa|y multip|
|00002b00| 6c 65 20 73 65 6c 65 63 | 74 69 6f 6e 73 20 69 6e |le selec|tions in|
|00002b10| 20 0a 20 20 20 74 68 65 | 20 6c 69 73 74 2e 0a 0a | . the| list...|
|00002b20| 20 20 20 20 20 20 2a 09 | 49 6e 74 65 72 6e 61 74 | *.|Internat|
|00002b30| 69 6f 6e 61 6c 69 7a 61 | 74 69 6f 6e 20 73 75 70 |ionaliza|tion sup|
|00002b40| 70 6f 72 74 20 2d 20 6c | 61 62 65 6c 73 20 61 6e |port - l|abels an|
|00002b50| 64 20 74 65 78 74 20 64 | 69 73 70 6c 61 79 65 64 |d text d|isplayed|
|00002b60| 20 76 69 61 0a 20 20 20 | 61 72 72 61 79 73 20 6f | via. |arrays o|
|00002b70| 66 20 75 6e 69 63 6f 64 | 65 20 73 74 72 69 6e 67 |f unicod|e string|
|00002b80| 73 20 69 6e 64 65 78 65 | 64 20 62 79 20 6c 61 6e |s indexe|d by lan|
|00002b90| 67 75 61 67 65 2e 0a 0a | 2a 2f 0a 0a 69 6d 70 6f |guage...|*/..impo|
|00002ba0| 72 74 20 6a 61 76 61 2e | 61 77 74 2e 2a 3b 0a 69 |rt java.|awt.*;.i|
|00002bb0| 6d 70 6f 72 74 20 6a 61 | 76 61 2e 6e 65 74 2e 2a |mport ja|va.net.*|
|00002bc0| 3b 0a 69 6d 70 6f 72 74 | 20 6a 61 76 61 2e 75 74 |;.import| java.ut|
|00002bd0| 69 6c 2e 2a 3b 0a 0a 70 | 75 62 6c 69 63 20 63 6c |il.*;..p|ublic cl|
|00002be0| 61 73 73 20 43 74 72 6c | 50 61 6e 65 6c 20 65 78 |ass Ctrl|Panel ex|
|00002bf0| 74 65 6e 64 73 20 67 72 | 69 64 50 61 6e 65 6c 20 |tends gr|idPanel |
|00002c00| 7b 0a 0a 20 20 20 20 2f | 2f 20 6f 75 72 20 70 61 |{.. /|/ our pa|
|00002c10| 72 65 6e 74 2e 2e 2e 0a | 20 20 20 20 4d 61 70 49 |rent....| MapI|
|00002c20| 6e 66 6f 20 70 61 72 65 | 6e 74 3b 0a 0a 20 20 20 |nfo pare|nt;.. |
|00002c30| 20 70 72 69 76 61 74 65 | 20 69 6e 74 20 70 61 6e | private| int pan|
|00002c40| 65 6c 46 75 6e 63 74 69 | 6f 6e 3b 09 09 2f 2f 20 |elFuncti|on;..// |
|00002c50| 57 68 61 74 20 69 73 20 | 74 68 65 20 4d 61 70 50 |What is |the MapP|
|00002c60| 61 6e 65 6c 20 64 6f 69 | 6e 67 20 66 6f 72 20 74 |anel doi|ng for t|
|00002c70| 68 65 20 75 73 65 72 3f | 0a 0a 20 20 20 20 70 72 |he user?|.. pr|
|00002c80| 69 76 61 74 65 20 73 74 | 61 74 69 63 20 69 6e 74 |ivate st|atic int|
|00002c90| 20 6e 75 6d 46 75 6e 63 | 73 20 3d 20 09 34 3b 09 | numFunc|s = .4;.|
|00002ca0| 2f 2f 20 6e 75 6d 62 65 | 72 20 6f 66 20 64 69 66 |// numbe|r of dif|
|00002cb0| 66 65 72 65 6e 74 20 66 | 6e 73 0a 20 20 20 20 70 |ferent f|ns. p|
|00002cc0| 72 69 76 61 74 65 20 53 | 74 72 69 6e 67 20 66 6e |rivate S|tring fn|
|00002cd0| 4e 61 6d 65 5b 5d 20 3d | 20 09 09 09 2f 2f 20 2e |Name[] =| ...// .|
|00002ce0| 2e 2e 20 61 6e 64 20 74 | 68 65 69 72 20 6e 61 6d |.. and t|heir nam|
|00002cf0| 65 73 2e 0a 09 7b 22 49 | 6e 66 6f 72 6d 61 74 69 |es...{"I|nformati|
|00002d00| 6f 6e 22 2c 20 0a 09 22 | 52 6f 75 74 65 20 49 6e |on", .."|Route In|
|00002d10| 66 6f 22 2c 0a 09 22 44 | 65 74 61 69 6c 20 6d 61 |fo",.."D|etail ma|
|00002d20| 70 73 22 2c 09 0a 09 22 | 53 65 61 72 63 68 22 7d |ps",..."|Search"}|
|00002d30| 3b 0a 0a 20 20 20 20 2f | 2f 20 43 6f 6e 73 74 61 |;.. /|/ Consta|
|00002d40| 6e 74 73 0a 20 20 20 20 | 66 69 6e 61 6c 20 69 6e |nts. |final in|
|00002d50| 74 20 67 65 74 4c 6f 63 | 61 74 69 6f 6e 49 6e 66 |t getLoc|ationInf|
|00002d60| 6f 20 3d 20 09 30 3b 09 | 2f 2f 20 45 6e 75 6d 65 |o = .0;.|// Enume|
|00002d70| 72 61 74 69 6f 6e 20 6f | 66 20 66 75 6e 63 74 69 |ration o|f functi|
|00002d80| 6f 6e 0a 20 20 20 20 66 | 69 6e 61 6c 20 69 6e 74 |on. f|inal int|
|00002d90| 20 67 65 74 52 6f 75 74 | 65 49 6e 66 6f 20 3d 09 | getRout|eInfo =.|
|00002da0| 20 09 31 3b 09 2f 2f 20 | 62 79 20 73 79 6d 62 6f | .1;.// |by symbo|
|00002db0| 6c 69 63 20 6e 61 6d 65 | 0a 20 20 20 20 66 69 6e |lic name|. fin|
|00002dc0| 61 6c 20 69 6e 74 20 67 | 65 74 44 65 74 61 69 6c |al int g|etDetail|
|00002dd0| 49 6e 66 6f 20 3d 09 20 | 09 32 3b 09 0a 20 20 20 |Info =. |.2;.. |
|00002de0| 20 66 69 6e 61 6c 20 69 | 6e 74 20 67 65 74 53 65 | final i|nt getSe|
|00002df0| 61 72 63 68 49 6e 66 6f | 20 3d 09 20 09 33 3b 09 |archInfo| =. .3;.|
|00002e00| 0a 0a 20 20 20 20 70 72 | 69 76 61 74 65 20 43 68 |.. pr|ivate Ch|
|00002e10| 65 63 6b 62 6f 78 47 72 | 6f 75 70 20 66 6e 67 72 |eckboxGr|oup fngr|
|00002e20| 70 20 3d 20 6e 65 77 20 | 43 68 65 63 6b 62 6f 78 |p = new |Checkbox|
|00002e30| 47 72 6f 75 70 28 29 3b | 0a 20 20 20 20 70 75 62 |Group();|. pub|
|00002e40| 6c 69 63 20 43 68 65 63 | 6b 62 6f 78 20 63 62 5f |lic Chec|kbox cb_|
|00002e50| 6c 6f 63 20 09 3d 20 6e | 65 77 20 43 68 65 63 6b |loc .= n|ew Check|
|00002e60| 62 6f 78 28 66 6e 4e 61 | 6d 65 5b 67 65 74 4c 6f |box(fnNa|me[getLo|
|00002e70| 63 61 74 69 6f 6e 49 6e | 66 6f 5d 2c 20 66 6e 67 |cationIn|fo], fng|
|00002e80| 72 70 2c 20 74 72 75 65 | 29 3b 0a 20 20 20 20 70 |rp, true|);. p|
|00002e90| 75 62 6c 69 63 20 43 68 | 65 63 6b 62 6f 78 20 63 |ublic Ch|eckbox c|
|00002ea0| 62 5f 72 6f 75 74 65 20 | 09 3d 20 6e 65 77 20 43 |b_route |.= new C|
|00002eb0| 68 65 63 6b 62 6f 78 28 | 66 6e 4e 61 6d 65 5b 67 |heckbox(|fnName[g|
|00002ec0| 65 74 52 6f 75 74 65 49 | 6e 66 6f 5d 2c 09 66 6e |etRouteI|nfo],.fn|
|00002ed0| 67 72 70 2c 20 66 61 6c | 73 65 29 3b 0a 20 20 20 |grp, fal|se);. |
|00002ee0| 20 70 75 62 6c 69 63 20 | 43 68 65 63 6b 62 6f 78 | public |Checkbox|
|00002ef0| 20 63 62 5f 64 65 74 61 | 69 6c 20 09 3d 20 6e 65 | cb_deta|il .= ne|
|00002f00| 77 20 43 68 65 63 6b 62 | 6f 78 28 66 6e 4e 61 6d |w Checkb|ox(fnNam|
|00002f10| 65 5b 67 65 74 44 65 74 | 61 69 6c 49 6e 66 6f 5d |e[getDet|ailInfo]|
|00002f20| 2c 09 66 6e 67 72 70 2c | 20 66 61 6c 73 65 29 3b |,.fngrp,| false);|
|00002f30| 0a 20 20 20 20 70 75 62 | 6c 69 63 20 43 68 65 63 |. pub|lic Chec|
|00002f40| 6b 62 6f 78 20 63 62 5f | 73 65 61 72 63 68 20 09 |kbox cb_|search .|
|00002f50| 3d 20 6e 65 77 20 43 68 | 65 63 6b 62 6f 78 28 66 |= new Ch|eckbox(f|
|00002f60| 6e 4e 61 6d 65 5b 67 65 | 74 53 65 61 72 63 68 49 |nName[ge|tSearchI|
|00002f70| 6e 66 6f 5d 2c 20 09 66 | 6e 67 72 70 2c 20 66 61 |nfo], .f|ngrp, fa|
|00002f80| 6c 73 65 29 3b 0a 0a 20 | 20 20 20 66 69 6e 61 6c |lse);.. | final|
|00002f90| 20 69 6e 74 20 52 45 4d | 4e 20 3d 20 47 72 69 64 | int REM|N = Grid|
|00002fa0| 42 61 67 43 6f 6e 73 74 | 72 61 69 6e 74 73 2e 52 |BagConst|raints.R|
|00002fb0| 45 4d 41 49 4e 44 45 52 | 3b 0a 0a 20 20 20 20 50 |EMAINDER|;.. P|
|00002fc0| 61 6e 65 6c 20 66 6e 63 | 74 6e 20 3d 20 09 6e 65 |anel fnc|tn = .ne|
|00002fd0| 77 20 50 61 6e 65 6c 28 | 29 3b 09 09 2f 2f 20 70 |w Panel(|);..// p|
|00002fe0| 61 6e 65 6c 20 66 6f 72 | 20 73 65 6c 65 63 74 69 |anel for| selecti|
|00002ff0| 6e 67 20 66 75 6e 63 74 | 69 6f 6e 0a 20 20 20 20 |ng funct|ion. |
|00003000| 50 61 6e 65 6c 20 64 69 | 73 70 6c 61 79 20 3d 20 |Panel di|splay = |
|00003010| 09 6e 65 77 20 50 61 6e | 65 6c 28 29 3b 09 09 2f |.new Pan|el();../|
|00003020| 2f 20 63 61 72 64 70 61 | 6e 65 6c 20 66 6f 72 20 |/ cardpa|nel for |
|00003030| 75 73 65 72 20 66 75 6e | 63 74 69 6f 6e 20 69 6e |user fun|ction in|
|00003040| 74 65 72 61 63 74 69 6f | 6e 0a 0a 20 20 20 20 43 |teractio|n.. C|
|00003050| 61 72 64 4c 61 79 6f 75 | 74 20 64 69 73 70 6c 61 |ardLayou|t displa|
|00003060| 79 5f 6c 61 79 6f 75 74 | 20 3d 20 6e 65 77 20 43 |y_layout| = new C|
|00003070| 61 72 64 4c 61 79 6f 75 | 74 28 29 3b 0a 0a 20 20 |ardLayou|t();.. |
|00003080| 20 20 49 6e 66 6f 50 61 | 6e 65 20 20 09 69 6e 66 | InfoPa|ne .inf|
|00003090| 6f 5f 64 69 73 70 6c 61 | 79 3b 09 09 09 2f 2f 20 |o_displa|y;...// |
|000030a0| 70 61 6e 65 6c 73 20 66 | 6f 72 20 76 61 72 69 6f |panels f|or vario|
|000030b0| 75 73 20 75 73 65 72 20 | 66 75 6e 63 74 69 6f 6e |us user |function|
|000030c0| 73 0a 20 20 20 20 52 6f | 75 74 65 50 61 6e 65 20 |s. Ro|utePane |
|000030d0| 09 72 6f 75 74 65 5f 64 | 69 73 70 6c 61 79 3b 20 |.route_d|isplay; |
|000030e0| 0a 20 20 20 20 44 65 74 | 61 69 6c 50 61 6e 65 09 |. Det|ailPane.|
|000030f0| 64 65 74 61 69 6c 5f 64 | 69 73 70 6c 61 79 3b 0a |detail_d|isplay;.|
|00003100| 20 20 20 20 53 65 61 72 | 63 68 50 61 6e 65 09 73 | Sear|chPane.s|
|00003110| 65 61 72 63 68 5f 64 69 | 73 70 6c 61 79 3b 0a 0a |earch_di|splay;..|
|00003120| 20 20 20 20 2f 2f 20 43 | 6f 6e 73 74 72 75 63 74 | // C|onstruct|
|00003130| 6f 72 0a 0a 20 20 20 20 | 43 74 72 6c 50 61 6e 65 |or.. |CtrlPane|
|00003140| 6c 28 4d 61 70 49 6e 66 | 6f 20 74 61 72 67 65 74 |l(MapInf|o target|
|00003150| 29 20 7b 0a 09 73 75 70 | 65 72 28 74 61 72 67 65 |) {..sup|er(targe|
|00003160| 74 29 3b 0a 09 63 2e 69 | 6e 73 65 74 73 20 3d 20 |t);..c.i|nsets = |
|00003170| 6e 65 77 20 49 6e 73 65 | 74 73 28 35 2c 20 35 2c |new Inse|ts(5, 5,|
|00003180| 20 30 2c 20 35 29 3b 0a | 09 2f 2f 20 47 65 74 20 | 0, 5);.|.// Get |
|00003190| 61 20 68 6f 6c 64 20 6f | 66 20 6f 75 72 20 70 61 |a hold o|f our pa|
|000031a0| 72 65 6e 74 2e 2e 2e 0a | 09 74 68 69 73 2e 70 61 |rent....|.this.pa|
|000031b0| 72 65 6e 74 20 3d 20 74 | 61 72 67 65 74 3b 0a 20 |rent = t|arget;. |
|000031c0| 20 20 20 20 20 20 20 64 | 69 73 70 6c 61 79 2e 73 | d|isplay.s|
|000031d0| 65 74 4c 61 79 6f 75 74 | 28 64 69 73 70 6c 61 79 |etLayout|(display|
|000031e0| 5f 6c 61 79 6f 75 74 29 | 3b 0a 20 09 6d 61 6b 65 |_layout)|;. .make|
|000031f0| 43 6f 6e 74 72 6f 6c 73 | 20 28 29 3b 0a 20 20 20 |Controls| ();. |
|00003200| 20 7d 0a 0a 20 20 20 20 | 2f 2f 20 54 6f 70 2d 6c | }.. |// Top-l|
|00003210| 65 76 65 6c 20 63 6f 6e | 74 72 6f 6c 20 70 61 6e |evel con|trol pan|
|00003220| 65 6c 0a 20 20 20 20 76 | 6f 69 64 20 6d 61 6b 65 |el. v|oid make|
|00003230| 43 6f 6e 74 72 6f 6c 73 | 20 28 29 7b 0a 09 2f 2f |Controls| (){..//|
|00003240| 09 20 20 20 09 50 61 6e | 65 6c 09 20 67 72 69 64 |. .Pan|el. grid|
|00003250| 78 09 67 72 69 64 79 09 | 57 65 69 67 68 74 78 20 |x.gridy.|Weightx |
|00003260| 57 65 69 67 68 74 79 20 | 47 72 69 64 57 20 20 20 |Weighty |GridW |
|00003270| 47 72 69 64 48 0a 09 6d | 61 6b 65 5f 70 61 6e 65 |GridH..m|ake_pane|
|00003280| 6c 28 66 6e 63 74 6e 2c | 20 09 20 31 2c 09 31 2c |l(fnctn,| . 1,.1,|
|00003290| 09 31 2e 30 2c 09 30 2e | 30 2c 09 52 45 4d 4e 2c |.1.0,.0.|0,.REMN,|
|000032a0| 09 31 29 3b 0a 09 6d 61 | 6b 65 5f 70 61 6e 65 6c |.1);..ma|ke_panel|
|000032b0| 28 64 69 73 70 6c 61 79 | 2c 20 09 20 31 2c 09 32 |(display|, . 1,.2|
|000032c0| 2c 09 31 2e 30 2c 09 31 | 2e 30 2c 09 52 45 4d 4e |,.1.0,.1|.0,.REMN|
|000032d0| 2c 09 52 45 4d 4e 29 3b | 0a 09 2f 2f 20 61 64 64 |,.REMN);|..// add|
|000032e0| 20 72 61 64 69 6f 20 62 | 75 74 74 6f 6e 73 0a 09 | radio b|uttons..|
|000032f0| 66 6e 63 74 6e 2e 73 65 | 74 4c 61 79 6f 75 74 28 |fnctn.se|tLayout(|
|00003300| 6e 65 77 20 47 72 69 64 | 4c 61 79 6f 75 74 28 33 |new Grid|Layout(3|
|00003310| 2c 20 32 29 29 3b 0a 09 | 66 6e 63 74 6e 2e 61 64 |, 2));..|fnctn.ad|
|00003320| 64 28 63 62 5f 6c 6f 63 | 29 3b 0a 09 66 6e 63 74 |d(cb_loc|);..fnct|
|00003330| 6e 2e 61 64 64 28 63 62 | 5f 72 6f 75 74 65 29 3b |n.add(cb|_route);|
|00003340| 0a 09 66 6e 63 74 6e 2e | 61 64 64 28 63 62 5f 64 |..fnctn.|add(cb_d|
|00003350| 65 74 61 69 6c 29 3b 0a | 09 66 6e 63 74 6e 2e 61 |etail);.|.fnctn.a|
|00003360| 64 64 28 63 62 5f 73 65 | 61 72 63 68 29 3b 0a 0a |dd(cb_se|arch);..|
|00003370| 09 69 6e 66 6f 5f 64 69 | 73 70 6c 61 79 20 3d 20 |.info_di|splay = |
|00003380| 20 20 6e 65 77 20 49 6e | 66 6f 50 61 6e 65 28 22 | new In|foPane("|
|00003390| 69 6e 66 6f 5f 64 69 73 | 70 6c 61 79 22 2c 20 64 |info_dis|play", d|
|000033a0| 69 73 70 6c 61 79 2c 20 | 70 61 72 65 6e 74 29 3b |isplay, |parent);|
|000033b0| 0a 09 72 6f 75 74 65 5f | 64 69 73 70 6c 61 79 20 |..route_|display |
|000033c0| 3d 20 20 6e 65 77 20 52 | 6f 75 74 65 50 61 6e 65 |= new R|outePane|
|000033d0| 28 64 69 73 70 6c 61 79 | 2c 20 70 61 72 65 6e 74 |(display|, parent|
|000033e0| 29 3b 0a 09 64 65 74 61 | 69 6c 5f 64 69 73 70 6c |);..deta|il_displ|
|000033f0| 61 79 20 3d 20 6e 65 77 | 20 44 65 74 61 69 6c 50 |ay = new| DetailP|
|00003400| 61 6e 65 28 64 69 73 70 | 6c 61 79 2c 20 70 61 72 |ane(disp|lay, par|
|00003410| 65 6e 74 29 3b 0a 09 73 | 65 61 72 63 68 5f 64 69 |ent);..s|earch_di|
|00003420| 73 70 6c 61 79 20 3d 20 | 6e 65 77 20 53 65 61 72 |splay = |new Sear|
|00003430| 63 68 50 61 6e 65 28 22 | 73 65 61 72 63 68 5f 64 |chPane("|search_d|
|00003440| 69 73 70 6c 61 79 22 2c | 20 64 69 73 70 6c 61 79 |isplay",| display|
|00003450| 2c 20 70 61 72 65 6e 74 | 29 3b 09 0a 20 20 20 20 |, parent|);.. |
|00003460| 7d 0a 0a 20 20 20 20 2f | 2f 20 45 76 65 6e 74 20 |}.. /|/ Event |
|00003470| 68 61 6e 64 6c 65 72 0a | 20 20 20 20 70 75 62 6c |handler.| publ|
|00003480| 69 63 20 62 6f 6f 6c 65 | 61 6e 20 61 63 74 69 6f |ic boole|an actio|
|00003490| 6e 28 45 76 65 6e 74 20 | 65 76 74 2c 20 4f 62 6a |n(Event |evt, Obj|
|000034a0| 65 63 74 20 61 72 67 29 | 20 7b 0a 09 69 66 20 28 |ect arg)| {..if (|
|000034b0| 65 76 74 2e 74 61 72 67 | 65 74 20 69 6e 73 74 61 |evt.targ|et insta|
|000034c0| 6e 63 65 6f 66 20 43 68 | 65 63 6b 62 6f 78 29 20 |nceof Ch|eckbox) |
|000034d0| 7b 0a 09 20 20 20 20 43 | 68 65 63 6b 62 6f 78 20 |{.. C|heckbox |
|000034e0| 63 62 20 3d 20 28 43 68 | 65 63 6b 62 6f 78 29 65 |cb = (Ch|eckbox)e|
|000034f0| 76 74 2e 74 61 72 67 65 | 74 3b 0a 09 20 20 20 20 |vt.targe|t;.. |
|00003500| 53 74 72 69 6e 67 20 63 | 62 6f 78 5f 73 65 6c 6e |String c|box_seln|
|00003510| 20 3d 20 63 62 2e 67 65 | 74 4c 61 62 65 6c 28 29 | = cb.ge|tLabel()|
|00003520| 3b 0a 09 20 20 20 20 69 | 66 20 28 63 62 6f 78 5f |;.. i|f (cbox_|
|00003530| 73 65 6c 6e 20 3d 3d 20 | 66 6e 4e 61 6d 65 5b 67 |seln == |fnName[g|
|00003540| 65 74 4c 6f 63 61 74 69 | 6f 6e 49 6e 66 6f 5d 29 |etLocati|onInfo])|
|00003550| 20 7b 0a 09 09 70 61 6e | 65 6c 46 75 6e 63 74 69 | {...pan|elFuncti|
|00003560| 6f 6e 20 3d 20 67 65 74 | 4c 6f 63 61 74 69 6f 6e |on = get|Location|
|00003570| 49 6e 66 6f 3b 0a 09 20 | 09 70 61 72 65 6e 74 2e |Info;.. |.parent.|
|00003580| 73 65 74 49 6e 66 6f 28 | 22 53 68 6f 77 20 69 6e |setInfo(|"Show in|
|00003590| 66 6f 72 6d 61 74 69 6f | 6e 20 61 62 6f 75 74 20 |formatio|n about |
|000035a0| 73 65 6c 65 63 74 65 64 | 20 6c 6f 63 61 74 69 6f |selected| locatio|
|000035b0| 6e 22 29 3b 0a 09 09 64 | 69 73 70 6c 61 79 5f 6c |n");...d|isplay_l|
|000035c0| 61 79 6f 75 74 2e 73 68 | 6f 77 28 64 69 73 70 6c |ayout.sh|ow(displ|
|000035d0| 61 79 2c 20 22 69 6e 66 | 6f 5f 64 69 73 70 6c 61 |ay, "inf|o_displa|
|000035e0| 79 22 29 3b 0a 09 20 20 | 20 20 7d 20 65 6c 73 65 |y");.. | } else|
|000035f0| 20 0a 09 20 20 20 20 69 | 66 20 28 63 62 6f 78 5f | .. i|f (cbox_|
|00003600| 73 65 6c 6e 20 3d 3d 20 | 66 6e 4e 61 6d 65 5b 67 |seln == |fnName[g|
|00003610| 65 74 52 6f 75 74 65 49 | 6e 66 6f 5d 29 20 7b 0a |etRouteI|nfo]) {.|
|00003620| 09 09 70 61 6e 65 6c 46 | 75 6e 63 74 69 6f 6e 20 |..panelF|unction |
|00003630| 3d 20 67 65 74 52 6f 75 | 74 65 49 6e 66 6f 3b 0a |= getRou|teInfo;.|
|00003640| 09 20 09 70 61 72 65 6e | 74 2e 73 65 74 49 6e 66 |. .paren|t.setInf|
|00003650| 6f 28 22 53 68 6f 77 20 | 72 6f 75 74 65 20 69 6e |o("Show |route in|
|00003660| 66 6f 72 6d 61 74 69 6f | 6e 22 29 3b 0a 09 09 64 |formatio|n");...d|
|00003670| 69 73 70 6c 61 79 5f 6c | 61 79 6f 75 74 2e 73 68 |isplay_l|ayout.sh|
|00003680| 6f 77 28 64 69 73 70 6c | 61 79 2c 20 22 72 6f 75 |ow(displ|ay, "rou|
|00003690| 74 65 5f 64 69 73 70 6c | 61 79 22 29 3b 0a 09 20 |te_displ|ay");.. |
|000036a0| 20 20 20 7d 20 65 6c 73 | 65 20 0a 09 20 20 20 20 | } els|e .. |
|000036b0| 69 66 20 28 63 62 6f 78 | 5f 73 65 6c 6e 20 3d 3d |if (cbox|_seln ==|
|000036c0| 20 66 6e 4e 61 6d 65 5b | 67 65 74 44 65 74 61 69 | fnName[|getDetai|
|000036d0| 6c 49 6e 66 6f 5d 29 20 | 7b 0a 09 09 70 61 6e 65 |lInfo]) |{...pane|
|000036e0| 6c 46 75 6e 63 74 69 6f | 6e 20 3d 20 67 65 74 44 |lFunctio|n = getD|
|000036f0| 65 74 61 69 6c 49 6e 66 | 6f 3b 0a 09 20 09 70 61 |etailInf|o;.. .pa|
|00003700| 72 65 6e 74 2e 73 65 74 | 49 6e 66 6f 28 22 53 68 |rent.set|Info("Sh|
|00003710| 6f 77 20 64 65 74 61 69 | 6c 65 64 20 6d 61 70 22 |ow detai|led map"|
|00003720| 29 3b 0a 09 09 64 69 73 | 70 6c 61 79 5f 6c 61 79 |);...dis|play_lay|
|00003730| 6f 75 74 2e 73 68 6f 77 | 28 64 69 73 70 6c 61 79 |out.show|(display|
|00003740| 2c 20 22 64 65 74 61 69 | 6c 5f 64 69 73 70 6c 61 |, "detai|l_displa|
|00003750| 79 22 29 3b 0a 09 20 20 | 20 20 7d 20 65 6c 73 65 |y");.. | } else|
|00003760| 20 0a 09 20 20 20 20 69 | 66 20 28 63 62 6f 78 5f | .. i|f (cbox_|
|00003770| 73 65 6c 6e 20 3d 3d 20 | 66 6e 4e 61 6d 65 5b 67 |seln == |fnName[g|
|00003780| 65 74 53 65 61 72 63 68 | 49 6e 66 6f 5d 29 20 7b |etSearch|Info]) {|
|00003790| 0a 09 09 70 61 6e 65 6c | 46 75 6e 63 74 69 6f 6e |...panel|Function|
|000037a0| 20 3d 20 67 65 74 53 65 | 61 72 63 68 49 6e 66 6f | = getSe|archInfo|
|000037b0| 3b 0a 09 20 09 70 61 72 | 65 6e 74 2e 73 65 74 49 |;.. .par|ent.setI|
|000037c0| 6e 66 6f 28 22 53 65 61 | 72 63 68 20 66 6f 72 20 |nfo("Sea|rch for |
|000037d0| 6c 6f 63 61 74 69 6f 6e | 22 29 3b 0a 09 09 64 69 |location|");...di|
|000037e0| 73 70 6c 61 79 5f 6c 61 | 79 6f 75 74 2e 73 68 6f |splay_la|yout.sho|
|000037f0| 77 28 64 69 73 70 6c 61 | 79 2c 20 22 73 65 61 72 |w(displa|y, "sear|
|00003800| 63 68 5f 64 69 73 70 6c | 61 79 22 29 3b 0a 09 20 |ch_displ|ay");.. |
|00003810| 20 20 20 7d 20 65 6c 73 | 65 20 20 20 2f 2f 20 64 | } els|e // d|
|00003820| 65 66 61 75 6c 74 3a 09 | 0a 09 09 7b 0a 09 20 20 |efault:.|...{.. |
|00003830| 20 20 09 70 61 6e 65 6c | 46 75 6e 63 74 69 6f 6e | .panel|Function|
|00003840| 20 3d 20 67 65 74 4c 6f | 63 61 74 69 6f 6e 49 6e | = getLo|cationIn|
|00003850| 66 6f 3b 0a 09 20 09 70 | 61 72 65 6e 74 2e 73 65 |fo;.. .p|arent.se|
|00003860| 74 49 6e 66 6f 28 22 53 | 68 6f 77 20 69 6e 66 6f |tInfo("S|how info|
|00003870| 72 6d 61 74 69 6f 6e 20 | 61 62 6f 75 74 20 73 65 |rmation |about se|
|00003880| 6c 65 63 74 65 64 20 6c | 6f 63 61 74 69 6f 6e 22 |lected l|ocation"|
|00003890| 29 3b 0a 09 09 64 69 73 | 70 6c 61 79 5f 6c 61 79 |);...dis|play_lay|
|000038a0| 6f 75 74 2e 73 68 6f 77 | 28 64 69 73 70 6c 61 79 |out.show|(display|
|000038b0| 2c 20 22 69 6e 66 6f 5f | 64 69 73 70 6c 61 79 22 |, "info_|display"|
|000038c0| 29 3b 0a 09 20 20 20 20 | 7d 0a 09 20 20 20 20 72 |);.. |}.. r|
|000038d0| 65 74 75 72 6e 20 74 72 | 75 65 3b 09 09 0a 09 7d |eturn tr|ue;....}|
|000038e0| 20 65 6c 73 65 0a 09 20 | 20 20 20 72 65 74 75 72 | else.. | retur|
|000038f0| 6e 20 66 61 6c 73 65 3b | 0a 20 20 20 20 7d 20 20 |n false;|. } |
|00003900| 20 20 0a 0a 20 20 20 20 | 2f 2f 20 72 65 74 75 72 | .. |// retur|
|00003910| 6e 73 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 75 |ns the c|urrent u|
|00003920| 73 65 72 20 66 75 6e 63 | 74 69 6f 6e 20 6f 66 20 |ser func|tion of |
|00003930| 74 68 65 20 4d 61 70 20 | 70 61 6e 65 6c 0a 20 20 |the Map |panel. |
|00003940| 20 20 70 75 62 6c 69 63 | 20 69 6e 74 20 67 65 74 | public| int get|
|00003950| 50 61 6e 65 6c 46 75 6e | 63 74 69 6f 6e 28 29 7b |PanelFun|ction(){|
|00003960| 0a 09 72 65 74 75 72 6e | 20 70 61 6e 65 6c 46 75 |..return| panelFu|
|00003970| 6e 63 74 69 6f 6e 3b 0a | 20 20 20 20 7d 3b 0a 0a |nction;.| };..|
|00003980| 20 20 20 20 2f 2f 20 73 | 65 74 20 74 68 65 20 63 | // s|et the c|
|00003990| 75 72 72 65 6e 74 20 75 | 73 65 72 20 66 75 6e 63 |urrent u|ser func|
|000039a0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 4d 61 70 20 |tion of |the Map |
|000039b0| 70 61 6e 65 6c 0a 20 20 | 20 20 70 75 62 6c 69 63 |panel. | public|
|000039c0| 20 76 6f 69 64 20 73 65 | 74 50 61 6e 65 6c 46 75 | void se|tPanelFu|
|000039d0| 6e 63 74 69 6f 6e 28 69 | 6e 74 20 66 75 6e 63 74 |nction(i|nt funct|
|000039e0| 69 6f 6e 29 7b 0a 09 70 | 61 6e 65 6c 46 75 6e 63 |ion){..p|anelFunc|
|000039f0| 74 69 6f 6e 20 3d 20 66 | 75 6e 63 74 69 6f 6e 3b |tion = f|unction;|
|00003a00| 0a 09 73 77 69 74 63 68 | 20 28 66 75 6e 63 74 69 |..switch| (functi|
|00003a10| 6f 6e 29 20 7b 0a 09 20 | 20 20 20 63 61 73 65 20 |on) {.. | case |
|00003a20| 67 65 74 4c 6f 63 61 74 | 69 6f 6e 49 6e 66 6f 3a |getLocat|ionInfo:|
|00003a30| 0a 09 09 63 62 5f 6c 6f | 63 2e 73 65 74 53 74 61 |...cb_lo|c.setSta|
|00003a40| 74 65 28 74 72 75 65 29 | 3b 0a 09 09 62 72 65 61 |te(true)|;...brea|
|00003a50| 6b 3b 0a 09 20 20 20 20 | 63 61 73 65 20 67 65 74 |k;.. |case get|
|00003a60| 52 6f 75 74 65 49 6e 66 | 6f 3a 0a 09 09 63 62 5f |RouteInf|o:...cb_|
|00003a70| 72 6f 75 74 65 2e 73 65 | 74 53 74 61 74 65 28 74 |route.se|tState(t|
|00003a80| 72 75 65 29 3b 0a 09 09 | 62 72 65 61 6b 3b 0a 09 |rue);...|break;..|
|00003a90| 20 20 20 20 63 61 73 65 | 20 67 65 74 44 65 74 61 | case| getDeta|
|00003aa0| 69 6c 49 6e 66 6f 3a 0a | 09 09 63 62 5f 64 65 74 |ilInfo:.|..cb_det|
|00003ab0| 61 69 6c 2e 73 65 74 53 | 74 61 74 65 28 74 72 75 |ail.setS|tate(tru|
|00003ac0| 65 29 3b 0a 09 09 62 72 | 65 61 6b 3b 0a 09 20 20 |e);...br|eak;.. |
|00003ad0| 20 20 63 61 73 65 20 67 | 65 74 53 65 61 72 63 68 | case g|etSearch|
|00003ae0| 49 6e 66 6f 3a 0a 09 09 | 63 62 5f 73 65 61 72 63 |Info:...|cb_searc|
|00003af0| 68 2e 73 65 74 53 74 61 | 74 65 28 74 72 75 65 29 |h.setSta|te(true)|
|00003b00| 3b 0a 09 7d 3b 09 0a 20 | 20 20 20 7d 3b 0a 0a 20 |;..};.. | };.. |
|00003b10| 20 20 20 76 6f 69 64 20 | 73 68 6f 77 43 6f 6f 72 | void |showCoor|
|00003b20| 64 73 28 69 6e 74 20 78 | 2c 20 69 6e 74 20 79 29 |ds(int x|, int y)|
|00003b30| 20 7b 0a 09 70 61 72 65 | 6e 74 2e 73 65 74 49 6e | {..pare|nt.setIn|
|00003b40| 66 6f 28 22 58 3a 20 22 | 20 2b 20 78 20 2b 20 22 |fo("X: "| + x + "|
|00003b50| 2c 20 59 3a 20 22 20 2b | 20 79 29 3b 0a 20 20 20 |, Y: " +| y);. |
|00003b60| 20 7d 0a 7d 0a 0a 63 6c | 61 73 73 20 49 6e 66 6f | }.}..cl|ass Info|
|00003b70| 50 61 6e 65 20 65 78 74 | 65 6e 64 73 20 67 72 69 |Pane ext|ends gri|
|00003b80| 64 50 61 6e 65 6c 20 7b | 0a 20 20 20 20 2f 2f 20 |dPanel {|. // |
|00003b90| 49 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 64 69 73 70 |Informat|ion disp|
|00003ba0| 6c 61 79 20 70 61 6e 65 | 6c 0a 0a 20 20 20 20 4d |lay pane|l.. M|
|00003bb0| 61 70 49 6e 66 6f 20 70 | 61 72 65 6e 74 3b 0a 0a |apInfo p|arent;..|
|00003bc0| 20 20 20 20 54 65 78 74 | 46 69 65 6c 64 20 6e 61 | Text|Field na|
|00003bd0| 6d 65 66 69 65 6c 64 3b | 0a 20 20 20 20 54 65 78 |mefield;|. Tex|
|00003be0| 74 46 69 65 6c 64 20 62 | 61 73 65 66 69 65 6c 64 |tField b|asefield|
|00003bf0| 3b 0a 20 20 20 20 54 65 | 78 74 46 69 65 6c 64 20 |;. Te|xtField |
|00003c00| 75 72 6c 66 69 65 6c 64 | 3b 0a 20 20 20 20 42 75 |urlfield|;. Bu|
|00003c10| 74 74 6f 6e 20 73 68 6f | 77 5f 75 72 6c 3b 0a 20 |tton sho|w_url;. |
|00003c20| 20 20 20 54 65 78 74 41 | 72 65 61 20 69 6e 66 6f | TextA|rea info|
|00003c30| 66 69 65 6c 64 3b 0a 20 | 20 20 20 0a 20 20 20 20 |field;. | . |
|00003c40| 49 6e 66 6f 50 61 6e 65 | 28 53 74 72 69 6e 67 20 |InfoPane|(String |
|00003c50| 6c 61 62 65 6c 2c 20 43 | 6f 6e 74 61 69 6e 65 72 |label, C|ontainer|
|00003c60| 20 74 61 72 67 65 74 2c | 20 4d 61 70 49 6e 66 6f | target,| MapInfo|
|00003c70| 20 70 61 72 65 6e 74 29 | 20 7b 0a 09 73 75 70 65 | parent)| {..supe|
|00003c80| 72 28 6c 61 62 65 6c 2c | 20 74 61 72 67 65 74 29 |r(label,| target)|
|00003c90| 3b 0a 09 74 68 69 73 2e | 70 61 72 65 6e 74 20 3d |;..this.|parent =|
|00003ca0| 20 70 61 72 65 6e 74 3b | 09 0a 09 2f 2f 09 20 20 | parent;|...//. |
|00003cb0| 20 20 20 20 20 4e 61 6d | 65 09 09 57 65 69 67 68 | Nam|e..Weigh|
|00003cc0| 74 58 09 57 65 69 67 68 | 74 59 09 67 72 69 64 57 |tX.Weigh|tY.gridW|
|00003cd0| 09 67 72 69 64 48 0a 09 | 4c 61 62 65 6c 20 6e 61 |.gridH..|Label na|
|00003ce0| 6d 65 20 3d 20 0a 09 20 | 20 20 6d 61 6b 65 5f 6c |me = .. | make_l|
|00003cf0| 61 62 65 6c 28 22 4e 61 | 6d 65 3a 22 2c 09 09 30 |abel("Na|me:",..0|
|00003d00| 2e 30 2c 09 30 2e 30 2c | 09 31 2c 20 09 31 29 3b |.0,.0.0,|.1, .1);|
|00003d10| 20 0a 09 6e 61 6d 65 66 | 69 65 6c 64 20 3d 20 0a | ..namef|ield = .|
|00003d20| 09 20 20 20 20 6d 61 6b | 65 5f 74 65 78 74 66 28 |. mak|e_textf(|
|00003d30| 22 43 6c 69 63 6b 20 6f | 6e 20 6d 61 70 20 74 6f |"Click o|n map to|
|00003d40| 20 73 65 65 20 6e 61 6d | 65 22 2c 20 66 61 6c 73 | see nam|e", fals|
|00003d50| 65 2c 0a 09 09 09 09 09 | 30 2e 36 2c 09 30 2e 30 |e,......|0.6,.0.0|
|00003d60| 2c 09 52 45 4d 4e 2c 20 | 09 31 29 3b 0a 09 4c 61 |,.REMN, |.1);..La|
|00003d70| 62 65 6c 20 62 61 73 65 | 20 3d 20 0a 09 20 20 20 |bel base| = .. |
|00003d80| 20 6d 61 6b 65 5f 6c 61 | 62 65 6c 28 22 42 61 73 | make_la|bel("Bas|
|00003d90| 65 20 43 6f 6f 72 64 73 | 3a 22 2c 09 30 2e 30 2c |e Coords|:",.0.0,|
|00003da0| 09 30 2e 30 2c 09 31 2c | 20 09 31 29 3b 20 0a 09 |.0.0,.1,| .1); ..|
|00003db0| 62 61 73 65 66 69 65 6c | 64 20 3d 20 0a 09 20 20 |basefiel|d = .. |
|00003dc0| 20 20 6d 61 6b 65 5f 74 | 65 78 74 66 28 22 20 22 | make_t|extf(" "|
|00003dd0| 2c 20 66 61 6c 73 65 2c | 09 30 2e 36 2c 09 30 2e |, false,|.0.6,.0.|
|00003de0| 30 2c 09 52 45 4d 4e 2c | 20 09 31 29 3b 0a 09 73 |0,.REMN,| .1);..s|
|00003df0| 68 6f 77 5f 75 72 6c 20 | 3d 20 0a 09 20 20 20 20 |how_url |= .. |
|00003e00| 6d 61 6b 65 5f 62 75 74 | 74 6f 6e 28 22 53 68 6f |make_but|ton("Sho|
|00003e10| 77 20 55 52 4c 22 2c 09 | 30 2e 30 2c 09 30 2e 30 |w URL",.|0.0,.0.0|
|00003e20| 2c 09 31 2c 20 09 31 29 | 3b 20 0a 09 75 72 6c 66 |,.1, .1)|; ..urlf|
|00003e30| 69 65 6c 64 20 3d 20 0a | 09 20 20 20 20 6d 61 6b |ield = .|. mak|
|00003e40| 65 5f 74 65 78 74 66 28 | 22 20 22 2c 20 66 61 6c |e_textf(|" ", fal|
|00003e50| 73 65 2c 09 30 2e 36 2c | 09 30 2e 30 2c 09 52 45 |se,.0.6,|.0.0,.RE|
|00003e60| 4d 4e 2c 20 09 31 29 3b | 0a 09 69 6e 66 6f 66 69 |MN, .1);|..infofi|
|00003e70| 65 6c 64 20 3d 20 0a 09 | 20 20 20 20 6d 61 6b 65 |eld = ..| make|
|00003e80| 5f 74 65 78 74 61 28 22 | 20 22 2c 20 38 2c 20 32 |_texta("| ", 8, 2|
|00003e90| 30 2c 09 31 2e 30 2c 09 | 31 2e 30 2c 09 52 45 4d |0,.1.0,.|1.0,.REM|
|00003ea0| 4e 2c 20 09 52 45 4d 4e | 29 3b 0a 20 20 20 20 7d |N, .REMN|);. }|
|00003eb0| 0a 0a 20 20 20 20 70 75 | 62 6c 69 63 20 76 6f 69 |.. pu|blic voi|
|00003ec0| 64 20 73 68 6f 77 4c 6f | 63 61 74 69 6f 6e 4e 61 |d showLo|cationNa|
|00003ed0| 6d 65 28 53 74 72 69 6e | 67 20 73 29 20 7b 0a 09 |me(Strin|g s) {..|
|00003ee0| 6e 61 6d 65 66 69 65 6c | 64 2e 73 65 74 54 65 78 |namefiel|d.setTex|
|00003ef0| 74 28 73 29 3b 0a 20 20 | 20 20 7d 0a 0a 20 20 20 |t(s);. | }.. |
|00003f00| 20 70 75 62 6c 69 63 20 | 76 6f 69 64 20 73 68 6f | public |void sho|
|00003f10| 77 4c 6f 63 61 74 69 6f | 6e 42 61 73 65 28 50 6f |wLocatio|nBase(Po|
|00003f20| 69 6e 74 20 70 29 20 7b | 0a 09 69 66 20 28 70 20 |int p) {|..if (p |
|00003f30| 21 3d 20 6e 75 6c 6c 29 | 20 7b 0a 09 20 20 20 20 |!= null)| {.. |
|00003f40| 62 61 73 65 66 69 65 6c | 64 2e 73 65 74 54 65 78 |basefiel|d.setTex|
|00003f50| 74 28 22 78 3a 22 2b 70 | 2e 78 2b 22 2c 20 79 3a |t("x:"+p|.x+", y:|
|00003f60| 22 2b 70 2e 79 29 3b 0a | 09 7d 20 65 6c 73 65 20 |"+p.y);.|.} else |
|00003f70| 7b 0a 20 20 20 20 09 20 | 20 20 20 62 61 73 65 66 |{. . | basef|
|00003f80| 69 65 6c 64 2e 73 65 74 | 54 65 78 74 28 22 20 22 |ield.set|Text(" "|
|00003f90| 29 3b 0a 09 7d 0a 20 20 | 20 20 7d 0a 0a 20 20 20 |);..}. | }.. |
|00003fa0| 20 70 75 62 6c 69 63 20 | 76 6f 69 64 20 73 68 6f | public |void sho|
|00003fb0| 77 4c 6f 63 61 74 69 6f | 6e 55 52 4c 28 55 52 4c |wLocatio|nURL(URL|
|00003fc0| 20 75 72 6c 29 20 7b 0a | 09 69 66 20 28 75 72 6c | url) {.|.if (url|
|00003fd0| 20 21 3d 20 6e 75 6c 6c | 29 20 7b 0a 09 20 20 20 | != null|) {.. |
|00003fe0| 20 75 72 6c 66 69 65 6c | 64 2e 73 65 74 54 65 78 | urlfiel|d.setTex|
|00003ff0| 74 28 75 72 6c 2e 74 6f | 53 74 72 69 6e 67 28 29 |t(url.to|String()|
|00004000| 29 3b 0a 09 7d 20 65 6c | 73 65 20 7b 0a 09 20 20 |);..} el|se {.. |
|00004010| 20 20 75 72 6c 66 69 65 | 6c 64 2e 73 65 74 54 65 | urlfie|ld.setTe|
|00004020| 78 74 28 22 20 22 29 3b | 0a 09 7d 0a 20 20 20 20 |xt(" ");|..}. |
|00004030| 7d 0a 0a 20 20 20 20 70 | 75 62 6c 69 63 20 76 6f |}.. p|ublic vo|
|00004040| 69 64 20 73 68 6f 77 4c | 6f 63 61 74 69 6f 6e 49 |id showL|ocationI|
|00004050| 6e 66 6f 54 65 78 74 28 | 53 74 72 69 6e 67 20 73 |nfoText(|String s|
|00004060| 29 20 7b 0a 09 69 66 20 | 28 73 20 21 3d 20 6e 75 |) {..if |(s != nu|
|00004070| 6c 6c 29 20 7b 0a 09 20 | 20 20 20 69 6e 66 6f 66 |ll) {.. | infof|
|00004080| 69 65 6c 64 2e 73 65 74 | 54 65 78 74 28 73 29 3b |ield.set|Text(s);|
|00004090| 0a 09 7d 20 65 6c 73 65 | 20 7b 0a 09 20 20 20 20 |..} else| {.. |
|000040a0| 2f 2f 20 53 65 74 74 69 | 6e 67 20 74 65 78 74 20 |// Setti|ng text |
|000040b0| 74 6f 20 74 68 65 20 65 | 6d 70 74 79 20 73 74 72 |to the e|mpty str|
|000040c0| 69 6e 67 20 64 6f 65 73 | 6e 27 74 20 63 6c 65 61 |ing does|n't clea|
|000040d0| 72 20 74 68 65 20 6f 6c | 64 20 74 65 78 74 21 0a |r the ol|d text!.|
|000040e0| 20 20 20 20 09 20 20 20 | 20 69 6e 66 6f 66 69 65 | . | infofie|
|000040f0| 6c 64 2e 73 65 74 54 65 | 78 74 28 22 20 22 29 3b |ld.setTe|xt(" ");|
|00004100| 0a 09 7d 0a 20 20 20 20 | 7d 0a 0a 20 20 20 20 2f |..}. |}.. /|
|00004110| 2f 20 43 6c 65 61 72 20 | 74 68 65 20 69 6e 66 6f |/ Clear |the info|
|00004120| 72 6d 61 74 69 6f 6e 20 | 70 61 6e 65 6c 2e 0a 20 |rmation |panel.. |
|00004130| 20 20 20 70 75 62 6c 69 | 63 20 76 6f 69 64 20 63 | publi|c void c|
|00004140| 6c 65 61 72 4c 6f 63 61 | 74 69 6f 6e 49 6e 66 6f |learLoca|tionInfo|
|00004150| 28 29 7b 0a 09 2f 2f 70 | 61 72 65 6e 74 2e 65 72 |(){..//p|arent.er|
|00004160| 72 6f 72 5f 68 61 6e 64 | 6c 65 72 2e 64 65 62 75 |ror_hand|ler.debu|
|00004170| 67 28 22 43 6c 65 61 72 | 69 6e 67 20 69 6e 66 6f |g("Clear|ing info|
|00004180| 2e 22 29 3b 0a 09 73 68 | 6f 77 4c 6f 63 61 74 69 |.");..sh|owLocati|
|00004190| 6f 6e 4e 61 6d 65 28 22 | 20 22 29 3b 0a 09 73 68 |onName("| ");..sh|
|000041a0| 6f 77 4c 6f 63 61 74 69 | 6f 6e 42 61 73 65 28 6e |owLocati|onBase(n|
|000041b0| 75 6c 6c 29 3b 0a 09 73 | 68 6f 77 4c 6f 63 61 74 |ull);..s|howLocat|
|000041c0| 69 6f 6e 55 52 4c 28 6e | 75 6c 6c 29 3b 0a 09 73 |ionURL(n|ull);..s|
|000041d0| 68 6f 77 4c 6f 63 61 74 | 69 6f 6e 49 6e 66 6f 54 |howLocat|ionInfoT|
|000041e0| 65 78 74 28 22 20 22 29 | 3b 0a 20 20 20 20 7d 0a |ext(" ")|;. }.|
|000041f0| 0a 20 20 20 20 2f 2f 20 | 53 68 6f 77 20 69 6e 66 |. // |Show inf|
|00004200| 6f 72 6d 61 74 69 6f 6e | 20 61 62 6f 75 74 20 74 |ormation| about t|
|00004210| 68 65 20 4c 6f 63 61 74 | 69 6f 6e 20 77 69 74 68 |he Locat|ion with|
|00004220| 20 62 61 73 65 20 63 6f | 6f 72 64 69 6e 61 74 65 | base co|ordinate|
|00004230| 73 20 28 78 2c 20 79 29 | 0a 20 20 20 20 70 75 62 |s (x, y)|. pub|
|00004240| 6c 69 63 20 76 6f 69 64 | 20 73 68 6f 77 4c 6f 63 |lic void| showLoc|
|00004250| 61 74 69 6f 6e 49 6e 66 | 6f 28 69 6e 74 20 78 2c |ationInf|o(int x,|
|00004260| 20 69 6e 74 20 79 29 20 | 7b 0a 09 4c 6f 63 61 74 | int y) |{..Locat|
|00004270| 69 6f 6e 20 6c 6f 63 20 | 3d 20 70 61 72 65 6e 74 |ion loc |= parent|
|00004280| 2e 6d 61 70 2e 67 65 74 | 4c 6f 63 61 74 69 6f 6e |.map.get|Location|
|00004290| 28 78 2c 79 29 3b 0a 09 | 63 6c 65 61 72 4c 6f 63 |(x,y);..|clearLoc|
|000042a0| 61 74 69 6f 6e 49 6e 66 | 6f 28 29 3b 0a 09 69 66 |ationInf|o();..if|
|000042b0| 20 28 6c 6f 63 20 21 3d | 20 6e 75 6c 6c 29 20 7b | (loc !=| null) {|
|000042c0| 0a 09 20 20 20 20 73 68 | 6f 77 4c 6f 63 61 74 69 |.. sh|owLocati|
|000042d0| 6f 6e 4e 61 6d 65 28 6c | 6f 63 2e 67 65 74 4e 61 |onName(l|oc.getNa|
|000042e0| 6d 65 28 29 29 3b 0a 09 | 20 20 20 20 73 68 6f 77 |me());..| show|
|000042f0| 4c 6f 63 61 74 69 6f 6e | 42 61 73 65 28 6c 6f 63 |Location|Base(loc|
|00004300| 2e 67 65 74 42 61 73 65 | 28 29 29 3b 0a 09 20 20 |.getBase|());.. |
|00004310| 20 20 73 68 6f 77 4c 6f | 63 61 74 69 6f 6e 55 52 | showLo|cationUR|
|00004320| 4c 28 6c 6f 63 2e 67 65 | 74 55 52 4c 28 29 29 3b |L(loc.ge|tURL());|
|00004330| 0a 09 20 20 20 20 73 68 | 6f 77 4c 6f 63 61 74 69 |.. sh|owLocati|
|00004340| 6f 6e 49 6e 66 6f 54 65 | 78 74 28 6c 6f 63 2e 67 |onInfoTe|xt(loc.g|
|00004350| 65 74 49 6e 66 6f 54 65 | 78 74 28 29 29 3b 0a 09 |etInfoTe|xt());..|
|00004360| 7d 0a 20 20 20 20 7d 0a | 0a 20 20 20 20 2f 2f 20 |}. }.|. // |
|00004370| 45 76 65 6e 74 20 68 61 | 6e 64 6c 65 72 0a 20 20 |Event ha|ndler. |
|00004380| 20 20 70 75 62 6c 69 63 | 20 62 6f 6f 6c 65 61 6e | public| boolean|
|00004390| 20 61 63 74 69 6f 6e 28 | 45 76 65 6e 74 20 65 76 | action(|Event ev|
|000043a0| 74 2c 20 4f 62 6a 65 63 | 74 20 61 72 67 29 20 7b |t, Objec|t arg) {|
|000043b0| 0a 09 69 66 20 28 65 76 | 74 2e 74 61 72 67 65 74 |..if (ev|t.target|
|000043c0| 20 69 6e 73 74 61 6e 63 | 65 6f 66 20 42 75 74 74 | instanc|eof Butt|
|000043d0| 6f 6e 29 20 7b 0a 09 20 | 20 20 20 69 66 20 28 28 |on) {.. | if ((|
|000043e0| 28 42 75 74 74 6f 6e 29 | 65 76 74 2e 74 61 72 67 |(Button)|evt.targ|
|000043f0| 65 74 29 20 3d 3d 20 73 | 68 6f 77 5f 75 72 6c 29 |et) == s|how_url)|
|00004400| 20 7b 0a 09 09 4c 6f 63 | 61 74 69 6f 6e 20 6c 6f | {...Loc|ation lo|
|00004410| 63 20 3d 20 28 4c 6f 63 | 61 74 69 6f 6e 29 70 61 |c = (Loc|ation)pa|
|00004420| 72 65 6e 74 2e 6d 61 70 | 76 69 65 77 2e 63 61 6e |rent.map|view.can|
|00004430| 76 61 73 2e 67 65 74 53 | 65 6c 65 63 74 65 64 4c |vas.getS|electedL|
|00004440| 6f 63 61 74 69 6f 6e 28 | 29 3b 0a 09 09 69 66 20 |ocation(|);...if |
|00004450| 28 6c 6f 63 20 21 3d 20 | 6e 75 6c 6c 29 20 7b 0a |(loc != |null) {.|
|00004460| 09 09 20 20 20 20 67 6f | 74 6f 55 52 4c 28 6c 6f |.. go|toURL(lo|
|00004470| 63 2e 67 65 74 55 52 4c | 28 29 29 3b 0a 09 09 7d |c.getURL|());...}|
|00004480| 0a 09 20 20 20 20 7d 0a | 09 20 20 20 20 72 65 74 |.. }.|. ret|
|00004490| 75 72 6e 20 74 72 75 65 | 3b 0a 09 7d 20 65 6c 73 |urn true|;..} els|
|000044a0| 65 0a 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |e..retur|n false;|
|000044b0| 0a 20 20 20 20 7d 0a 0a | 20 20 20 20 70 75 62 6c |. }..| publ|
|000044c0| 69 63 20 76 6f 69 64 20 | 67 6f 74 6f 55 52 4c 28 |ic void |gotoURL(|
|000044d0| 55 52 4c 20 75 72 6c 29 | 20 7b 0a 09 69 66 20 28 |URL url)| {..if (|
|000044e0| 75 72 6c 20 21 3d 20 6e | 75 6c 6c 29 0a 09 20 20 |url != n|ull).. |
|000044f0| 20 20 70 61 72 65 6e 74 | 2e 67 65 74 41 70 70 6c | parent|.getAppl|
|00004500| 65 74 43 6f 6e 74 65 78 | 74 28 29 2e 73 68 6f 77 |etContex|t().show|
|00004510| 44 6f 63 75 6d 65 6e 74 | 28 75 72 6c 29 3b 0a 20 |Document|(url);. |
|00004520| 20 20 20 7d 0a 7d 0a 0a | 0a 63 6c 61 73 73 20 53 | }.}..|.class S|
|00004530| 65 61 72 63 68 50 61 6e | 65 20 65 78 74 65 6e 64 |earchPan|e extend|
|00004540| 73 20 67 72 69 64 50 61 | 6e 65 6c 20 7b 0a 20 20 |s gridPa|nel {. |
|00004550| 20 20 2f 2f 20 4c 6f 63 | 61 74 69 6f 6e 20 73 65 | // Loc|ation se|
|00004560| 61 72 63 68 20 64 69 73 | 70 6c 61 79 20 70 61 6e |arch dis|play pan|
|00004570| 65 6c 0a 0a 20 20 20 20 | 4d 61 70 49 6e 66 6f 20 |el.. |MapInfo |
|00004580| 70 61 72 65 6e 74 3b 0a | 0a 20 20 20 20 4c 61 62 |parent;.|. Lab|
|00004590| 65 6c 20 73 65 61 72 63 | 68 66 6f 72 3b 0a 20 20 |el searc|hfor;. |
|000045a0| 20 20 54 65 78 74 46 69 | 65 6c 64 20 73 65 61 72 | TextFi|eld sear|
|000045b0| 63 68 5f 65 6e 74 72 79 | 3b 0a 20 20 20 20 4c 69 |ch_entry|;. Li|
|000045c0| 73 74 20 6c 6f 63 6e 5f | 6c 69 73 74 3b 0a 20 20 |st locn_|list;. |
|000045d0| 20 20 42 75 74 74 6f 6e | 20 73 68 6f 77 5f 69 6e | Button| show_in|
|000045e0| 66 6f 3b 0a 0a 20 20 20 | 20 53 65 61 72 63 68 50 |fo;.. | SearchP|
|000045f0| 61 6e 65 28 53 74 72 69 | 6e 67 20 6c 61 62 65 6c |ane(Stri|ng label|
|00004600| 2c 20 50 61 6e 65 6c 20 | 74 61 72 67 65 74 2c 20 |, Panel |target, |
|00004610| 4d 61 70 49 6e 66 6f 20 | 70 61 72 65 6e 74 29 20 |MapInfo |parent) |
|00004620| 7b 0a 09 73 75 70 65 72 | 28 6c 61 62 65 6c 2c 20 |{..super|(label, |
|00004630| 74 61 72 67 65 74 29 3b | 0a 09 74 68 69 73 2e 70 |target);|..this.p|
|00004640| 61 72 65 6e 74 20 3d 20 | 70 61 72 65 6e 74 3b 0a |arent = |parent;.|
|00004650| 0a 09 2f 2f 09 20 20 20 | 20 20 20 20 4e 61 6d 65 |..//. | Name|
|00004660| 09 09 57 65 69 67 68 74 | 58 09 57 65 69 67 68 74 |..Weight|X.Weight|
|00004670| 59 09 67 72 69 64 57 09 | 67 72 69 64 48 0a 09 4c |Y.gridW.|gridH..L|
|00004680| 61 62 65 6c 20 73 65 61 | 72 63 68 66 6f 72 20 3d |abel sea|rchfor =|
|00004690| 20 0a 09 20 20 20 6d 61 | 6b 65 5f 6c 61 62 65 6c | .. ma|ke_label|
|000046a0| 28 22 53 65 61 72 63 68 | 20 46 6f 72 3a 22 2c 09 |("Search| For:",.|
|000046b0| 30 2e 30 2c 09 30 2e 30 | 2c 09 31 2c 20 09 31 09 |0.0,.0.0|,.1, .1.|
|000046c0| 29 3b 20 0a 09 73 65 61 | 72 63 68 5f 65 6e 74 72 |); ..sea|rch_entr|
|000046d0| 79 20 3d 20 0a 09 20 20 | 20 20 6d 61 6b 65 5f 74 |y = .. | make_t|
|000046e0| 65 78 74 66 28 22 4c 6f | 63 61 74 69 6f 6e 22 2c |extf("Lo|cation",|
|000046f0| 20 74 72 75 65 2c 09 0a | 09 09 09 09 09 31 2e 30 | true,..|.....1.0|
|00004700| 2c 09 30 2e 30 2c 09 52 | 45 4d 4e 2c 20 09 31 09 |,.0.0,.R|EMN, .1.|
|00004710| 29 3b 0a 09 6c 6f 63 6e | 5f 6c 69 73 74 20 3d 20 |);..locn|_list = |
|00004720| 0a 09 20 20 20 20 6d 61 | 6b 65 5f 6c 69 73 74 28 |.. ma|ke_list(|
|00004730| 22 20 22 2c 20 37 2c 20 | 66 61 6c 73 65 2c 09 31 |" ", 7, |false,.1|
|00004740| 2e 30 2c 09 31 2e 30 2c | 09 52 45 4d 4e 2c 20 09 |.0,.1.0,|.REMN, .|
|00004750| 31 09 29 3b 0a 09 73 68 | 6f 77 5f 69 6e 66 6f 20 |1.);..sh|ow_info |
|00004760| 3d 20 0a 09 20 20 20 20 | 6d 61 6b 65 5f 62 75 74 |= .. |make_but|
|00004770| 74 6f 6e 28 22 20 53 68 | 6f 77 20 73 65 6c 65 63 |ton(" Sh|ow selec|
|00004780| 74 69 6f 6e 20 22 2c 0a | 09 09 09 09 09 31 2e 30 |tion ",.|.....1.0|
|00004790| 2c 09 30 2e 30 2c 09 52 | 45 4d 4e 2c 20 09 31 09 |,.0.0,.R|EMN, .1.|
|000047a0| 29 3b 20 0a 20 20 20 20 | 7d 0a 0a 20 20 20 20 2f |); . |}.. /|
|000047b0| 2f 20 45 76 65 6e 74 20 | 68 61 6e 64 6c 65 72 0a |/ Event |handler.|
|000047c0| 20 20 20 20 70 75 62 6c | 69 63 20 62 6f 6f 6c 65 | publ|ic boole|
|000047d0| 61 6e 20 61 63 74 69 6f | 6e 28 45 76 65 6e 74 20 |an actio|n(Event |
|000047e0| 65 76 74 2c 20 4f 62 6a | 65 63 74 20 61 72 67 29 |evt, Obj|ect arg)|
|000047f0| 20 7b 0a 0a 09 53 65 61 | 72 63 68 50 61 6e 65 20 | {...Sea|rchPane |
|00004800| 73 20 3d 20 70 61 72 65 | 6e 74 2e 63 74 72 6c 76 |s = pare|nt.ctrlv|
|00004810| 69 65 77 2e 73 65 61 72 | 63 68 5f 64 69 73 70 6c |iew.sear|ch_displ|
|00004820| 61 79 3b 0a 09 49 6e 66 | 6f 50 61 6e 65 20 69 6e |ay;..Inf|oPane in|
|00004830| 66 6f 20 3d 20 70 61 72 | 65 6e 74 2e 63 74 72 6c |fo = par|ent.ctrl|
|00004840| 76 69 65 77 2e 69 6e 66 | 6f 5f 64 69 73 70 6c 61 |view.inf|o_displa|
|00004850| 79 3b 0a 0a 09 69 66 20 | 28 65 76 74 2e 74 61 72 |y;...if |(evt.tar|
|00004860| 67 65 74 20 69 6e 73 74 | 61 6e 63 65 6f 66 20 54 |get inst|anceof T|
|00004870| 65 78 74 46 69 65 6c 64 | 29 20 7b 0a 09 20 20 20 |extField|) {.. |
|00004880| 20 54 65 78 74 46 69 65 | 6c 64 20 74 66 20 3d 20 | TextFie|ld tf = |
|00004890| 28 54 65 78 74 46 69 65 | 6c 64 29 65 76 74 2e 74 |(TextFie|ld)evt.t|
|000048a0| 61 72 67 65 74 3b 0a 09 | 20 20 20 20 69 66 20 28 |arget;..| if (|
|000048b0| 74 66 20 3d 3d 20 73 65 | 61 72 63 68 5f 65 6e 74 |tf == se|arch_ent|
|000048c0| 72 79 29 20 7b 0a 09 09 | 73 65 61 72 63 68 45 6e |ry) {...|searchEn|
|000048d0| 74 72 79 28 74 66 2e 67 | 65 74 54 65 78 74 28 29 |try(tf.g|etText()|
|000048e0| 29 3b 0a 09 20 20 20 20 | 7d 0a 09 20 20 20 20 72 |);.. |}.. r|
|000048f0| 65 74 75 72 6e 20 74 72 | 75 65 3b 0a 09 7d 20 65 |eturn tr|ue;..} e|
|00004900| 6c 73 65 20 69 66 20 28 | 65 76 74 2e 74 61 72 67 |lse if (|evt.targ|
|00004910| 65 74 20 69 6e 73 74 61 | 6e 63 65 6f 66 20 4c 69 |et insta|nceof Li|
|00004920| 73 74 29 20 7b 0a 09 20 | 20 20 20 4c 69 73 74 20 |st) {.. | List |
|00004930| 6c 69 73 74 20 3d 20 28 | 4c 69 73 74 29 65 76 74 |list = (|List)evt|
|00004940| 2e 74 61 72 67 65 74 3b | 0a 09 20 20 20 20 69 66 |.target;|.. if|
|00004950| 20 28 6c 69 73 74 2e 67 | 65 74 53 65 6c 65 63 74 | (list.g|etSelect|
|00004960| 65 64 49 74 65 6d 28 29 | 20 21 3d 20 6e 75 6c 6c |edItem()| != null|
|00004970| 29 20 7b 0a 09 09 2f 2f | 20 67 65 74 20 74 68 65 |) {...//| get the|
|00004980| 20 6c 6f 63 61 74 69 6f | 6e 0a 09 09 4c 6f 63 61 | locatio|n...Loca|
|00004990| 74 69 6f 6e 20 6c 6f 63 | 20 3d 20 70 61 72 65 6e |tion loc| = paren|
|000049a0| 74 2e 6d 61 70 2e 67 65 | 74 4c 6f 63 61 74 69 6f |t.map.ge|tLocatio|
|000049b0| 6e 42 79 4e 61 6d 65 28 | 6c 69 73 74 2e 67 65 74 |nByName(|list.get|
|000049c0| 53 65 6c 65 63 74 65 64 | 49 74 65 6d 28 29 29 3b |Selected|Item());|
|000049d0| 0a 09 09 2f 2f 20 73 65 | 6c 65 63 74 20 74 68 65 |...// se|lect the|
|000049e0| 20 6c 6f 63 61 74 69 6f | 6e 20 6f 6e 20 74 68 65 | locatio|n on the|
|000049f0| 20 4d 61 70 0a 09 09 70 | 61 72 65 6e 74 2e 6d 61 | Map...p|arent.ma|
|00004a00| 70 76 69 65 77 2e 63 61 | 6e 76 61 73 2e 73 65 74 |pview.ca|nvas.set|
|00004a10| 53 65 6c 65 63 74 65 64 | 4c 6f 63 61 74 69 6f 6e |Selected|Location|
|00004a20| 28 6c 6f 63 29 3b 0a 09 | 09 70 61 72 65 6e 74 2e |(loc);..|.parent.|
|00004a30| 6d 61 70 76 69 65 77 2e | 63 61 6e 76 61 73 2e 72 |mapview.|canvas.r|
|00004a40| 65 70 61 69 6e 74 28 29 | 3b 0a 09 09 2f 2f 20 73 |epaint()|;...// s|
|00004a50| 65 74 20 61 20 74 68 65 | 20 62 75 74 74 6f 6e 20 |et a the| button |
|00004a60| 74 6f 20 6f 66 66 65 72 | 20 74 6f 20 64 69 73 70 |to offer| to disp|
|00004a70| 6c 61 79 20 6d 6f 72 65 | 20 69 6e 66 6f 2e 2e 2e |lay more| info...|
|00004a80| 0a 09 09 42 75 74 74 6f | 6e 20 62 20 20 3d 20 70 |...Butto|n b = p|
|00004a90| 61 72 65 6e 74 2e 63 74 | 72 6c 76 69 65 77 2e 73 |arent.ct|rlview.s|
|00004aa0| 65 61 72 63 68 5f 64 69 | 73 70 6c 61 79 2e 73 68 |earch_di|splay.sh|
|00004ab0| 6f 77 5f 69 6e 66 6f 3b | 0a 09 09 62 2e 73 65 74 |ow_info;|...b.set|
|00004ac0| 4c 61 62 65 6c 28 22 53 | 68 6f 77 20 69 6e 66 6f |Label("S|how info|
|00004ad0| 20 66 6f 72 20 22 2b 6c | 69 73 74 2e 67 65 74 53 | for "+l|ist.getS|
|00004ae0| 65 6c 65 63 74 65 64 49 | 74 65 6d 28 29 29 3b 0a |electedI|tem());.|
|00004af0| 09 20 20 20 20 7d 0a 09 | 20 20 20 20 72 65 74 75 |. }..| retu|
|00004b00| 72 6e 20 74 72 75 65 3b | 0a 09 7d 20 65 6c 73 65 |rn true;|..} else|
|00004b10| 20 69 66 20 28 65 76 74 | 2e 74 61 72 67 65 74 20 | if (evt|.target |
|00004b20| 69 6e 73 74 61 6e 63 65 | 6f 66 20 42 75 74 74 6f |instance|of Butto|
|00004b30| 6e 29 20 7b 0a 09 20 20 | 20 20 42 75 74 74 6f 6e |n) {.. | Button|
|00004b40| 20 62 20 20 3d 20 28 42 | 75 74 74 6f 6e 29 65 76 | b = (B|utton)ev|
|00004b50| 74 2e 74 61 72 67 65 74 | 3b 0a 2f 2f 09 20 20 20 |t.target|;.//. |
|00004b60| 20 62 2e 73 65 74 4c 61 | 62 65 6c 28 22 53 68 6f | b.setLa|bel("Sho|
|00004b70| 77 20 69 6e 66 6f 20 66 | 6f 72 20 22 2b 73 2e 6c |w info f|or "+s.l|
|00004b80| 6f 63 6e 5f 6c 69 73 74 | 2e 67 65 74 53 65 6c 65 |ocn_list|.getSele|
|00004b90| 63 74 65 64 49 74 65 6d | 28 29 29 3b 0a 09 20 20 |ctedItem|());.. |
|00004ba0| 20 20 69 66 20 28 73 2e | 6c 6f 63 6e 5f 6c 69 73 | if (s.|locn_lis|
|00004bb0| 74 2e 67 65 74 53 65 6c | 65 63 74 65 64 49 74 65 |t.getSel|ectedIte|
|00004bc0| 6d 28 29 20 21 3d 20 6e | 75 6c 6c 29 20 7b 0a 09 |m() != n|ull) {..|
|00004bd0| 09 69 66 20 28 62 20 3d | 3d 20 70 61 72 65 6e 74 |.if (b =|= parent|
|00004be0| 2e 63 74 72 6c 76 69 65 | 77 2e 73 65 61 72 63 68 |.ctrlvie|w.search|
|00004bf0| 5f 64 69 73 70 6c 61 79 | 2e 73 68 6f 77 5f 69 6e |_display|.show_in|
|00004c00| 66 6f 29 20 7b 0a 09 09 | 20 20 20 20 4c 6f 63 61 |fo) {...| Loca|
|00004c10| 74 69 6f 6e 20 6c 6f 63 | 20 3d 20 70 61 72 65 6e |tion loc| = paren|
|00004c20| 74 2e 6d 61 70 2e 67 65 | 74 4c 6f 63 61 74 69 6f |t.map.ge|tLocatio|
|00004c30| 6e 42 79 4e 61 6d 65 28 | 73 2e 6c 6f 63 6e 5f 6c |nByName(|s.locn_l|
|00004c40| 69 73 74 2e 67 65 74 53 | 65 6c 65 63 74 65 64 49 |ist.getS|electedI|
|00004c50| 74 65 6d 28 29 29 3b 0a | 09 09 20 20 20 20 2f 2f |tem());.|.. //|
|00004c60| 70 61 72 65 6e 74 2e 65 | 72 72 6f 72 5f 68 61 6e |parent.e|rror_han|
|00004c70| 64 6c 65 72 2e 64 65 62 | 75 67 28 22 53 65 6c 65 |dler.deb|ug("Sele|
|00004c80| 63 74 65 64 20 6c 6f 63 | 61 74 69 6f 6e 20 3d 20 |cted loc|ation = |
|00004c90| 22 2b 6c 6f 63 2e 67 65 | 74 4e 61 6d 65 28 29 29 |"+loc.ge|tName())|
|00004ca0| 3b 0a 09 09 20 20 20 20 | 2f 2f 70 61 72 65 6e 74 |;... |//parent|
|00004cb0| 2e 65 72 72 6f 72 5f 68 | 61 6e 64 6c 65 72 2e 64 |.error_h|andler.d|
|00004cc0| 65 62 75 67 28 22 58 3a | 22 2b 6c 6f 63 2e 67 65 |ebug("X:|"+loc.ge|
|00004cd0| 74 42 61 73 65 28 29 2e | 78 2b 22 2c 20 59 3a 22 |tBase().|x+", Y:"|
|00004ce0| 2b 6c 6f 63 2e 67 65 74 | 42 61 73 65 28 29 2e 79 |+loc.get|Base().y|
|00004cf0| 29 3b 0a 09 09 20 20 20 | 20 70 61 72 65 6e 74 2e |);... | parent.|
|00004d00| 63 74 72 6c 76 69 65 77 | 2e 64 69 73 70 6c 61 79 |ctrlview|.display|
|00004d10| 5f 6c 61 79 6f 75 74 2e | 73 68 6f 77 28 0a 09 09 |_layout.|show(...|
|00004d20| 09 28 43 6f 6e 74 61 69 | 6e 65 72 29 70 61 72 65 |.(Contai|ner)pare|
|00004d30| 6e 74 2e 63 74 72 6c 76 | 69 65 77 2e 64 69 73 70 |nt.ctrlv|iew.disp|
|00004d40| 6c 61 79 2c 22 69 6e 66 | 6f 5f 64 69 73 70 6c 61 |lay,"inf|o_displa|
|00004d50| 79 22 29 3b 0a 09 09 20 | 20 20 20 70 61 72 65 6e |y");... | paren|
|00004d60| 74 2e 63 74 72 6c 76 69 | 65 77 2e 73 65 74 50 61 |t.ctrlvi|ew.setPa|
|00004d70| 6e 65 6c 46 75 6e 63 74 | 69 6f 6e 28 70 61 72 65 |nelFunct|ion(pare|
|00004d80| 6e 74 2e 63 74 72 6c 76 | 69 65 77 2e 67 65 74 4c |nt.ctrlv|iew.getL|
|00004d90| 6f 63 61 74 69 6f 6e 49 | 6e 66 6f 29 3b 0a 09 09 |ocationI|nfo);...|
|00004da0| 20 20 20 20 69 6e 66 6f | 2e 73 68 6f 77 4c 6f 63 | info|.showLoc|
|00004db0| 61 74 69 6f 6e 49 6e 66 | 6f 28 6c 6f 63 2e 67 65 |ationInf|o(loc.ge|
|00004dc0| 74 42 61 73 65 28 29 2e | 78 2c 20 6c 6f 63 2e 67 |tBase().|x, loc.g|
|00004dd0| 65 74 42 61 73 65 28 29 | 2e 79 29 3b 0a 09 09 7d |etBase()|.y);...}|
|00004de0| 0a 09 20 20 20 20 7d 0a | 09 20 20 20 20 72 65 74 |.. }.|. ret|
|00004df0| 75 72 6e 20 74 72 75 65 | 3b 0a 09 7d 20 65 6c 73 |urn true|;..} els|
|00004e00| 65 0a 09 20 20 20 20 72 | 65 74 75 72 6e 20 66 61 |e.. r|eturn fa|
|00004e10| 6c 73 65 3b 0a 20 20 20 | 20 7d 0a 0a 20 20 20 20 |lse;. | }.. |
|00004e20| 2f 2f 20 48 61 6e 64 6c | 65 20 73 65 61 72 63 68 |// Handl|e search|
|00004e30| 69 6e 67 20 66 6f 72 20 | 6c 6f 63 61 74 69 6f 6e |ing for |location|
|00004e40| 73 20 0a 20 20 20 20 70 | 75 62 6c 69 63 20 76 6f |s . p|ublic vo|
|00004e50| 69 64 20 73 65 61 72 63 | 68 45 6e 74 72 79 28 53 |id searc|hEntry(S|
|00004e60| 74 72 69 6e 67 20 73 29 | 20 7b 0a 09 56 65 63 74 |tring s)| {..Vect|
|00004e70| 6f 72 20 6d 61 74 63 68 | 69 6e 67 4c 6f 63 6e 73 |or match|ingLocns|
|00004e80| 3b 0a 09 70 61 72 65 6e | 74 2e 73 65 74 49 6e 66 |;..paren|t.setInf|
|00004e90| 6f 28 22 53 65 61 72 63 | 68 69 6e 67 20 66 6f 72 |o("Searc|hing for|
|00004ea0| 20 6c 6f 63 61 74 69 6f | 6e 73 20 6d 61 74 63 68 | locatio|ns match|
|00004eb0| 69 6e 67 20 22 2b 73 2b | 22 2e 2e 2e 22 29 3b 0a |ing "+s+|"...");.|
|00004ec0| 09 6d 61 74 63 68 69 6e | 67 4c 6f 63 6e 73 20 3d |.matchin|gLocns =|
|00004ed0| 20 70 61 72 65 6e 74 2e | 6d 61 70 2e 66 69 6e 64 | parent.|map.find|
|00004ee0| 4c 6f 63 61 74 69 6f 6e | 73 42 79 4b 65 79 77 6f |Location|sByKeywo|
|00004ef0| 72 64 28 73 29 3b 0a 09 | 6c 6f 63 6e 5f 6c 69 73 |rd(s);..|locn_lis|
|00004f00| 74 2e 63 6c 65 61 72 28 | 29 3b 0a 09 69 66 20 28 |t.clear(|);..if (|
|00004f10| 6d 61 74 63 68 69 6e 67 | 4c 6f 63 6e 73 20 21 3d |matching|Locns !=|
|00004f20| 20 6e 75 6c 6c 29 20 7b | 0a 09 20 20 20 20 69 6e | null) {|.. in|
|00004f30| 74 20 63 6f 75 6e 74 20 | 3d 20 30 3b 0a 09 20 20 |t count |= 0;.. |
|00004f40| 20 20 66 6f 72 20 28 45 | 6e 75 6d 65 72 61 74 69 | for (E|numerati|
|00004f50| 6f 6e 20 65 20 3d 20 6d | 61 74 63 68 69 6e 67 4c |on e = m|atchingL|
|00004f60| 6f 63 6e 73 2e 65 6c 65 | 6d 65 6e 74 73 28 29 3b |ocns.ele|ments();|
|00004f70| 20 0a 09 09 20 20 20 20 | 65 2e 68 61 73 4d 6f 72 | ... |e.hasMor|
|00004f80| 65 45 6c 65 6d 65 6e 74 | 73 28 29 3b 20 29 20 7b |eElement|s(); ) {|
|00004f90| 0a 09 09 4c 6f 63 61 74 | 69 6f 6e 20 6c 6f 63 20 |...Locat|ion loc |
|00004fa0| 20 3d 20 28 4c 6f 63 61 | 74 69 6f 6e 29 65 2e 6e | = (Loca|tion)e.n|
|00004fb0| 65 78 74 45 6c 65 6d 65 | 6e 74 28 29 3b 0a 09 09 |extEleme|nt();...|
|00004fc0| 6c 6f 63 6e 5f 6c 69 73 | 74 2e 61 64 64 49 74 65 |locn_lis|t.addIte|
|00004fd0| 6d 28 6c 6f 63 2e 67 65 | 74 4e 61 6d 65 28 29 29 |m(loc.ge|tName())|
|00004fe0| 3b 0a 09 09 63 6f 75 6e | 74 2b 2b 3b 0a 09 20 20 |;...coun|t++;.. |
|00004ff0| 20 20 7d 0a 09 20 20 20 | 20 70 61 72 65 6e 74 2e | }.. | parent.|
|00005000| 73 65 74 49 6e 66 6f 28 | 22 46 6f 75 6e 64 20 22 |setInfo(|"Found "|
|00005010| 2b 63 6f 75 6e 74 2b 22 | 20 6c 6f 63 61 74 69 6f |+count+"| locatio|
|00005020| 6e 73 20 6d 61 74 63 68 | 69 6e 67 20 22 2b 73 2b |ns match|ing "+s+|
|00005030| 22 2e 22 29 3b 0a 09 7d | 20 65 6c 73 65 20 7b 0a |".");..}| else {.|
|00005040| 09 20 20 20 20 70 61 72 | 65 6e 74 2e 73 65 74 49 |. par|ent.setI|
|00005050| 6e 66 6f 28 22 4e 6f 20 | 6c 6f 63 61 74 69 6f 6e |nfo("No |location|
|00005060| 73 20 6d 61 74 63 68 65 | 64 20 22 2b 73 2b 22 2e |s matche|d "+s+".|
|00005070| 22 29 3b 0a 09 7d 0a 20 | 20 20 20 7d 0a 7d 0a 0a |");..}. | }.}..|
|00005080| 2f 2f 20 52 6f 75 74 65 | 20 64 69 73 70 6c 61 79 |// Route| display|
|00005090| 20 70 61 6e 65 6c 0a 63 | 6c 61 73 73 20 52 6f 75 | panel.c|lass Rou|
|000050a0| 74 65 50 61 6e 65 20 65 | 78 74 65 6e 64 73 20 50 |tePane e|xtends P|
|000050b0| 61 6e 65 6c 20 7b 0a 0a | 20 20 20 20 52 6f 75 74 |anel {..| Rout|
|000050c0| 65 50 61 6e 65 28 50 61 | 6e 65 6c 20 74 61 72 67 |ePane(Pa|nel targ|
|000050d0| 65 74 2c 20 4d 61 70 49 | 6e 66 6f 20 70 61 72 65 |et, MapI|nfo pare|
|000050e0| 6e 74 29 20 7b 0a 09 74 | 61 72 67 65 74 2e 61 64 |nt) {..t|arget.ad|
|000050f0| 64 28 22 72 6f 75 74 65 | 5f 64 69 73 70 6c 61 79 |d("route|_display|
|00005100| 22 2c 20 74 68 69 73 29 | 3b 0a 09 73 65 74 4c 61 |", this)|;..setLa|
|00005110| 79 6f 75 74 28 6e 65 77 | 20 47 72 69 64 4c 61 79 |yout(new| GridLay|
|00005120| 6f 75 74 28 31 2c 31 29 | 29 3b 0a 09 61 64 64 28 |out(1,1)|);..add(|
|00005130| 6e 65 77 20 42 75 74 74 | 6f 6e 28 22 52 6f 75 74 |new Butt|on("Rout|
|00005140| 65 73 22 29 29 3b 0a 20 | 20 20 20 7d 0a 7d 0a 0a |es"));. | }.}..|
|00005150| 2f 2f 20 44 65 74 61 69 | 6c 20 64 69 73 70 6c 61 |// Detai|l displa|
|00005160| 79 20 70 61 6e 65 6c 0a | 63 6c 61 73 73 20 44 65 |y panel.|class De|
|00005170| 74 61 69 6c 50 61 6e 65 | 20 65 78 74 65 6e 64 73 |tailPane| extends|
|00005180| 20 50 61 6e 65 6c 20 7b | 0a 0a 20 20 20 20 44 65 | Panel {|.. De|
|00005190| 74 61 69 6c 50 61 6e 65 | 28 50 61 6e 65 6c 20 74 |tailPane|(Panel t|
|000051a0| 61 72 67 65 74 2c 20 4d | 61 70 49 6e 66 6f 20 70 |arget, M|apInfo p|
|000051b0| 61 72 65 6e 74 29 20 7b | 0a 09 74 61 72 67 65 74 |arent) {|..target|
|000051c0| 2e 61 64 64 28 22 64 65 | 74 61 69 6c 5f 64 69 73 |.add("de|tail_dis|
|000051d0| 70 6c 61 79 22 2c 20 74 | 68 69 73 29 3b 0a 09 73 |play", t|his);..s|
|000051e0| 65 74 4c 61 79 6f 75 74 | 28 6e 65 77 20 47 72 69 |etLayout|(new Gri|
|000051f0| 64 4c 61 79 6f 75 74 28 | 31 2c 31 29 29 3b 0a 09 |dLayout(|1,1));..|
|00005200| 61 64 64 28 6e 65 77 20 | 42 75 74 74 6f 6e 28 22 |add(new |Button("|
|00005210| 53 68 6f 77 20 6c 6f 63 | 61 74 69 6f 6e 20 64 65 |Show loc|ation de|
|00005220| 74 61 69 6c 73 22 29 29 | 3b 0a 20 20 20 20 7d 0a |tails"))|;. }.|
|00005230| 7d 0a 0a 69 76 61 74 65 | 20 69 6e 74 20 70 61 6e |}..ivate| int pan|
|00005240| 65 6c 46 75 6e 63 74 69 | 6f 6e 3b 09 09 2f 2f 20 |elFuncti|on;..// |
|00005250| 57 68 61 74 20 69 73 20 | 74 68 65 20 4d 61 70 50 |What is |the MapP|
|00005260| 61 6e 65 6c 20 64 6f 69 | 6e 67 20 66 6f 72 20 74 |anel doi|ng for t|
|00005270| 68 65 20 75 73 65 72 3f | 0a 0a 20 20 20 20 70 72 |he user?|.. pr|
|00005280| 69 76 61 74 65 20 73 74 | 61 74 69 63 20 69 6e 74 |ivate st|atic int|
|00005290| 20 6e 75 6d 46 75 6e 63 | 73 20 3d 20 09 34 3b 09 | numFunc|s = .4;.|
|000052a0| 2f 2f 20 6e 75 6d 62 65 | 72 20 6f 66 20 64 69 66 |// numbe|r of dif|
|000052b0| 66 65 72 65 6e 74 20 66 | 6e 73 0a 20 20 20 20 70 |ferent f|ns. p|
|000052c0| 72 69 76 61 74 65 20 53 | 74 72 69 6e 67 20 66 6e |rivate S|tring fn|
|000052d0| 4e 61 6d 65 5b 5d 20 3d | 20 09 09 09 2f 2f 20 2e |Name[] =| ...// .|
|000052e0| 2e 2e 20 61 6e 64 20 74 | 68 65 69 72 20 6e 61 6d |.. and t|heir nam|
|000052f0| 65 73 2e 0a 09 7b 22 49 | 6e 66 6f 72 6d 61 74 69 |es...{"I|nformati|
|00005300| 6f 6e 22 2c 20 0a 09 22 | 52 6f 75 74 65 20 49 6e |on", .."|Route In|
|00005310| 66 6f 22 2c 0a 09 22 44 | 65 74 61 69 6c 20 6d 61 |fo",.."D|etail ma|
|00005320| 70 73 22 2c 09 0a 09 22 | 53 65 61 72 63 68 22 7d |ps",..."|Search"}|
|00005330| 3b 0a 0a 20 20 20 20 2f | 2f 20 43 6f 6e 73 74 61 |;.. /|/ Consta|
|00005340| 6e 74 73 0a 20 20 20 20 | 66 69 6e 61 6c 20 69 6e |nts. |final in|
|00005350| 74 20 67 65 74 4c 6f 63 | 61 74 69 6f 6e 49 6e 66 |t getLoc|ationInf|
|00005360| 6f 20 3d 20 09 30 3b 09 | 2f 2f 20 45 6e 75 6d 65 |o = .0;.|// Enume|
|00005370| 72 61 74 69 6f 6e 20 6f | 66 20 66 75 6e 63 74 69 |ration o|f functi|
|00005380| 6f 6e 0a 20 20 20 20 66 | 69 6e 61 6c 20 69 6e 74 |on. f|inal int|
|00005390| 20 67 65 74 52 6f 75 74 | 65 49 6e 66 6f 20 3d 09 | getRout|eInfo =.|
|000053a0| 20 09 31 3b 09 2f 2f 20 | 62 79 20 73 79 6d 62 6f | .1;.// |by symbo|
|000053b0| 6c 69 63 20 6e 61 6d 65 | 0a 20 20 20 20 66 69 6e |lic name|. fin|
|000053c0| 61 6c 20 69 6e 74 20 67 | 65 74 44 65 74 61 69 6c |al int g|etDetail|
|000053d0| 49 6e 66 6f 20 3d 09 20 | 09 32 3b 09 0a 20 20 20 |Info =. |.2;.. |
|000053e0| 20 66 69 6e 61 6c 20 69 | 6e 74 20 67 65 74 53 65 | final i|nt getSe|
|000053f0| 61 72 63 68 49 6e 66 6f | 20 3d 09 20 09 33 3b 09 |archInfo| =. .3;.|
|00005400| 69 6e 74 65 72 6e 65 74 | 2f 49 4e 47 5a 50 32 36 |internet|/INGZP26|
|00005410| 41 2f 49 6e 66 6f 50 61 | 6e 65 6c 2e 6a 61 76 61 |A/InfoPa|nel.java|
|00005420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005460| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 30 |....0100|644.0000|
|00005470| 30 30 30 00 30 30 30 30 | 30 30 31 00 30 30 30 30 |000.0000|001.0000|
|00005480| 30 30 30 30 37 33 31 00 | 30 36 31 35 30 34 32 33 |0000731.|06150423|
|00005490| 37 36 30 00 30 30 31 36 | 37 33 35 00 30 00 00 00 |760.0016|735.0...|
|000054a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005500| 00 75 73 74 61 72 00 30 | 30 72 6f 6f 74 00 00 00 |.ustar.0|0root...|
|00005510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005520| 00 00 00 00 00 00 00 00 | 00 6f 74 68 65 72 00 00 |........|.other..|
|00005530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005540| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 30 34 30 |........|.0000040|
|00005550| 00 30 30 30 30 32 31 30 | 00 00 00 00 00 00 00 00 |.0000210|........|
|00005560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005600| 2f 2a 20 24 49 64 3a 20 | 49 6e 66 6f 50 61 6e 65 |/* $Id: |InfoPane|
|00005610| 6c 2e 6a 61 76 61 2c 76 | 20 31 2e 33 20 31 39 39 |l.java,v| 1.3 199|
|00005620| 36 2f 30 33 2f 32 38 20 | 30 31 3a 31 36 3a 33 32 |6/03/28 |01:16:32|
|00005630| 20 64 6a 75 6e 20 45 78 | 70 20 24 0a 0a 20 20 20 | djun Ex|p $.. |
|00005640| 46 69 6c 65 3a 20 49 6e | 66 6f 50 61 6e 65 6c 2e |File: In|foPanel.|
|00005650| 6a 61 76 61 0a 0a 20 20 | 20 41 75 74 68 6f 72 3a |java.. | Author:|
|00005660| 20 44 6a 75 6e 20 4d 2e | 20 4b 69 6d 0a 20 20 20 | Djun M.| Kim. |
|00005670| 43 6f 70 79 72 69 67 68 | 74 20 28 63 29 20 31 39 |Copyrigh|t (c) 19|
|00005680| 39 36 20 44 6a 75 6e 20 | 4d 2e 20 4b 69 6d 2e 20 |96 Djun |M. Kim. |
|00005690| 20 41 6c 6c 20 72 69 67 | 68 74 73 20 72 65 73 65 | All rig|hts rese|
|000056a0| 72 76 65 64 2e 0a 0a 2a | 2f 0a 0a 69 6d 70 6f 72 |rved...*|/..impor|
|000056b0| 74 20 6a 61 76 61 2e 61 | 77 74 2e 2a 3b 0a 0a 70 |t java.a|wt.*;..p|
|000056c0| 75 62 6c 69 63 20 63 6c | 61 73 73 20 49 6e 66 6f |ublic cl|ass Info|
|000056d0| 50 61 6e 65 6c 20 65 78 | 74 65 6e 64 73 20 50 61 |Panel ex|tends Pa|
|000056e0| 6e 65 6c 20 7b 0a 0a 20 | 20 20 20 54 65 78 74 46 |nel {.. | TextF|
|000056f0| 69 65 6c 64 20 74 65 78 | 74 66 20 3d 20 6e 65 77 |ield tex|tf = new|
|00005700| 20 54 65 78 74 46 69 65 | 6c 64 28 22 4d 61 70 20 | TextFie|ld("Map |
|00005710| 49 6e 66 6f 22 29 3b 0a | 0a 20 20 20 20 49 6e 66 |Info");.|. Inf|
|00005720| 6f 50 61 6e 65 6c 28 4d | 61 70 49 6e 66 6f 20 74 |oPanel(M|apInfo t|
|00005730| 61 72 67 65 74 29 20 7b | 20 20 20 20 20 20 20 20 |arget) {| |
|00005740| 20 20 20 0a 09 73 65 74 | 4c 61 79 6f 75 74 28 6e | ..set|Layout(n|
|00005750| 65 77 20 47 72 69 64 4c | 61 79 6f 75 74 28 31 2c |ew GridL|ayout(1,|
|00005760| 31 29 29 3b 0a 09 74 65 | 78 74 66 2e 73 65 74 45 |1));..te|xtf.setE|
|00005770| 64 69 74 61 62 6c 65 28 | 66 61 6c 73 65 29 3b 0a |ditable(|false);.|
|00005780| 09 61 64 64 28 74 65 78 | 74 66 29 3b 0a 20 20 20 |.add(tex|tf);. |
|00005790| 20 7d 0a 0a 20 20 20 20 | 70 75 62 6c 69 63 20 76 | }.. |public v|
|000057a0| 6f 69 64 20 64 69 73 70 | 6c 61 79 28 53 74 72 69 |oid disp|lay(Stri|
|000057b0| 6e 67 20 73 29 20 7b 0a | 09 74 68 69 73 2e 74 65 |ng s) {.|.this.te|
|000057c0| 78 74 66 2e 73 65 74 54 | 65 78 74 28 73 29 3b 0a |xtf.setT|ext(s);.|
|000057d0| 20 20 20 20 7d 0a 7d 0a | 0a 00 00 00 00 00 00 00 | }.}.|........|
|000057e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005800| 69 6e 74 65 72 6e 65 74 | 2f 49 4e 47 5a 50 32 36 |internet|/INGZP26|
|00005810| 41 2f 4c 6f 63 61 74 69 | 6f 6e 2e 6a 61 76 61 00 |A/Locati|on.java.|
|00005820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005860| 00 00 00 00 30 31 30 30 | 36 34 34 00 30 30 30 30 |....0100|644.0000|
|00005870| 30 30 30 00 30 30 30 30 | 30 30 31 00 30 30 30 30 |000.0000|001.0000|
|00005880| 30 30 31 30 34 33 30 00 | 30 36 31 35 30 34 32 33 |0010430.|06150423|
|00005890| 37 36 30 00 30 30 31 36 | 36 32 37 00 30 00 00 00 |760.0016|627.0...|
|000058a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005900| 00 75 73 74 61 72 00 30 | 30 72 6f 6f 74 00 00 00 |.ustar.0|0root...|
|00005910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005920| 00 00 00 00 00 00 00 00 | 00 6f 74 68 65 72 00 00 |........|.other..|
|00005930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005940| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 30 34 30 |........|.0000040|
|00005950| 00 30 30 30 30 32 31 30 | 00 00 00 00 00 00 00 00 |.0000210|........|
|00005960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a00| 2f 2a 20 24 49 64 3a 20 | 4c 6f 63 61 74 69 6f 6e |/* $Id: |Location|
|00005a10| 2e 6a 61 76 61 2c 76 20 | 31 2e 36 20 31 39 39 36 |.java,v |1.6 1996|
|00005a20| 2f 30 33 2f 33 31 20 31 | 31 3a 34 33 3a 30 32 20 |/03/31 1|1:43:02 |
|00005a30| 64 6a 75 6e 20 45 78 70 | 20 64 6a 75 6e 20 24 0a |djun Exp| djun $.|
|00005a40| 0a 20 20 20 46 69 6c 65 | 3a 20 4c 6f 63 61 74 69 |. File|: Locati|
|00005a50| 6f 6e 2e 6a 61 76 61 0a | 0a 20 20 20 44 65 66 69 |on.java.|. Defi|
|00005a60| 6e 65 73 20 74 68 65 20 | 63 6c 61 73 73 20 4c 6f |nes the |class Lo|
|00005a70| 63 61 74 69 6f 6e 2c 20 | 77 68 69 63 68 20 69 73 |cation, |which is|
|00005a80| 20 74 68 65 20 6b 65 79 | 20 6f 62 6a 65 63 74 20 | the key| object |
|00005a90| 66 6f 72 20 74 68 65 0a | 20 20 20 47 49 53 2e 20 |for the.| GIS. |
|00005aa0| 45 61 63 68 20 6d 61 70 | 20 63 6f 6e 73 69 73 74 |Each map| consist|
|00005ab0| 73 20 6f 66 20 61 20 62 | 75 6e 63 68 20 6f 66 20 |s of a b|unch of |
|00005ac0| 6c 6f 63 61 74 69 6f 6e | 73 3b 20 65 61 63 68 20 |location|s; each |
|00005ad0| 6c 6f 63 61 74 69 6f 6e | 20 69 73 0a 20 20 20 65 |location| is. e|
|00005ae0| 6d 62 65 64 64 65 64 20 | 69 6e 20 73 6f 6d 65 20 |mbedded |in some |
|00005af0| 6d 61 70 2e 0a 0a 20 20 | 20 41 75 74 68 6f 72 3a |map... | Author:|
|00005b00| 20 44 6a 75 6e 20 4d 2e | 20 4b 69 6d 0a 20 20 20 | Djun M.| Kim. |
|00005b10| 43 6f 70 79 72 69 67 68 | 74 20 28 63 29 20 31 39 |Copyrigh|t (c) 19|
|00005b20| 39 36 20 44 6a 75 6e 20 | 4d 2e 20 4b 69 6d 2e 20 |96 Djun |M. Kim. |
|00005b30| 20 41 6c 6c 20 72 69 67 | 68 74 73 20 72 65 73 65 | All rig|hts rese|
|00005b40| 72 76 65 64 2e 0a 0a 0a | 2a 2f 0a 0a 69 6d 70 6f |rved....|*/..impo|
|00005b50| 72 74 20 4d 61 70 3b 0a | 69 6d 70 6f 72 74 20 4d |rt Map;.|import M|
|00005b60| 61 70 45 72 72 6f 72 3b | 0a 69 6d 70 6f 72 74 20 |apError;|.import |
|00005b70| 6a 61 76 61 2e 6e 65 74 | 2e 2a 3b 0a 69 6d 70 6f |java.net|.*;.impo|
|00005b80| 72 74 20 6a 61 76 61 2e | 61 77 74 2e 2a 3b 0a 69 |rt java.|awt.*;.i|
|00005b90| 6d 70 6f 72 74 20 6a 61 | 76 61 2e 75 74 69 6c 2e |mport ja|va.util.|
|00005ba0| 56 65 63 74 6f 72 3b 0a | 0a 70 75 62 6c 69 63 20 |Vector;.|.public |
|00005bb0| 63 6c 61 73 73 20 4c 6f | 63 61 74 69 6f 6e 20 65 |class Lo|cation e|
|00005bc0| 78 74 65 6e 64 73 20 4f | 62 6a 65 63 74 20 7b 0a |xtends O|bject {.|
|00005bd0| 0a 20 20 20 20 70 72 6f | 74 65 63 74 65 64 20 4d |. pro|tected M|
|00005be0| 61 70 20 70 61 72 65 6e | 74 3b 0a 0a 20 20 20 20 |ap paren|t;.. |
|00005bf0| 70 72 6f 74 65 63 74 65 | 64 20 50 6f 69 6e 74 20 |protecte|d Point |
|00005c00| 09 62 61 73 65 3b 09 09 | 2f 2f 20 62 61 73 65 20 |.base;..|// base |
|00005c10| 63 6f 6f 72 64 69 6e 61 | 74 65 20 6f 66 20 74 68 |coordina|te of th|
|00005c20| 65 20 6c 6f 63 61 74 69 | 6f 6e 0a 20 20 20 20 70 |e locati|on. p|
|00005c30| 72 6f 74 65 63 74 65 64 | 20 52 65 67 69 6f 6e 09 |rotected| Region.|
|00005c40| 72 65 67 69 6f 6e 3b 09 | 09 2f 2f 20 70 65 72 69 |region;.|.// peri|
|00005c50| 6d 65 74 65 72 20 6f 66 | 20 74 68 65 20 72 65 67 |meter of| the reg|
|00005c60| 69 6f 6e 0a 20 20 20 20 | 70 72 6f 74 65 63 74 65 |ion. |protecte|
|00005c70| 64 20 53 74 72 69 6e 67 | 09 6e 61 6d 65 3b 09 09 |d String|.name;..|
|00005c80| 2f 2f 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 6c |// name |of the l|
|00005c90| 6f 63 61 74 69 6f 6e 0a | 20 20 20 20 70 72 6f 74 |ocation.| prot|
|00005ca0| 65 63 74 65 64 20 55 52 | 4c 20 09 75 72 6c 3b 09 |ected UR|L .url;.|
|00005cb0| 09 2f 2f 20 68 79 70 65 | 72 6c 69 6e 6b 0a 20 20 |.// hype|rlink. |
|00005cc0| 20 20 70 72 6f 74 65 63 | 74 65 64 20 4d 61 70 09 | protec|ted Map.|
|00005cd0| 64 65 74 61 69 6c 3b 09 | 09 2f 2f 20 64 65 74 61 |detail;.|.// deta|
|00005ce0| 69 6c 20 6d 61 70 20 6f | 66 20 6c 6f 63 61 74 69 |il map o|f locati|
|00005cf0| 6f 6e 0a 20 20 20 20 70 | 72 6f 74 65 63 74 65 64 |on. p|rotected|
|00005d00| 20 56 65 63 74 6f 72 09 | 65 6e 74 72 61 6e 63 65 | Vector.|entrance|
|00005d10| 73 3b 09 2f 2f 20 63 61 | 72 72 69 65 72 73 20 65 |s;.// ca|rriers e|
|00005d20| 6e 74 65 72 69 6e 67 20 | 74 68 69 73 20 6c 6f 63 |ntering |this loc|
|00005d30| 61 74 69 6f 6e 20 0a 20 | 20 20 20 70 72 6f 74 65 |ation . | prote|
|00005d40| 63 74 65 64 20 56 65 63 | 74 6f 72 09 65 78 69 74 |cted Vec|tor.exit|
|00005d50| 73 3b 09 09 2f 2f 20 63 | 61 72 72 69 65 72 73 20 |s;..// c|arriers |
|00005d60| 6c 65 61 76 69 6e 67 20 | 74 68 69 73 20 6c 6f 63 |leaving |this loc|
|00005d70| 61 74 69 6f 6e 20 0a 20 | 20 20 20 70 72 6f 74 65 |ation . | prote|
|00005d80| 63 74 65 64 20 49 6d 61 | 67 65 09 6d 61 70 69 6d |cted Ima|ge.mapim|
|00005d90| 67 3b 09 09 2f 2f 20 6d | 61 70 20 69 6d 61 67 65 |g;..// m|ap image|
|00005da0| 20 6f 66 20 74 68 65 20 | 6c 6f 63 61 74 69 6f 6e | of the |location|
|00005db0| 0a 20 20 20 20 70 72 6f | 74 65 63 74 65 64 20 53 |. pro|tected S|
|00005dc0| 74 72 69 6e 67 09 69 6e | 66 6f 74 65 78 74 3b 09 |tring.in|fotext;.|
|00005dd0| 2f 2f 20 74 65 78 74 20 | 64 65 73 63 72 69 62 69 |// text |describi|
|00005de0| 6e 67 20 74 68 65 20 6c | 6f 63 61 74 69 6f 6e 0a |ng the l|ocation.|
|00005df0| 20 20 20 20 70 72 6f 74 | 65 63 74 65 64 20 56 65 | prot|ected Ve|
|00005e00| 63 74 6f 72 09 6b 65 79 | 77 6f 72 64 73 3b 09 2f |ctor.key|words;./|
|00005e10| 2f 20 6b 65 79 77 6f 72 | 64 20 73 74 72 69 6e 67 |/ keywor|d string|
|00005e20| 73 20 75 73 65 64 20 74 | 6f 20 64 6f 20 6c 6f 6f |s used t|o do loo|
|00005e30| 6b 75 70 73 0a 0a 20 20 | 20 20 70 72 6f 74 65 63 |kups.. | protec|
|00005e40| 74 65 64 20 62 6f 6f 6c | 65 61 6e 20 09 64 69 73 |ted bool|ean .dis|
|00005e50| 70 6c 61 79 61 62 6c 65 | 3b 09 2f 2f 20 64 6f 65 |playable|;.// doe|
|00005e60| 73 20 69 74 20 6d 61 6b | 65 20 73 65 6e 73 65 20 |s it mak|e sense |
|00005e70| 74 6f 20 64 69 73 70 6c | 61 79 20 74 68 69 73 20 |to displ|ay this |
|00005e80| 6c 6f 63 61 74 69 6f 6e | 3f 0a 0a 20 20 20 20 70 |location|?.. p|
|00005e90| 72 6f 74 65 63 74 65 64 | 20 4d 61 70 45 72 72 6f |rotected| MapErro|
|00005ea0| 72 20 09 65 72 72 6f 72 | 5f 68 61 6e 64 6c 65 72 |r .error|_handler|
|00005eb0| 20 3d 20 6e 65 77 20 4d | 61 70 45 72 72 6f 72 28 | = new M|apError(|
|00005ec0| 29 3b 0a 0a 20 20 20 20 | 2f 2f 20 43 6f 6e 73 74 |);.. |// Const|
|00005ed0| 72 75 63 74 6f 72 0a 20 | 20 20 20 4c 6f 63 61 74 |ructor. | Locat|
|00005ee0| 69 6f 6e 28 4d 61 70 20 | 74 61 72 67 65 74 2c 20 |ion(Map |target, |
|00005ef0| 50 6f 69 6e 74 20 70 29 | 20 7b 0a 09 74 68 69 73 |Point p)| {..this|
|00005f00| 2e 70 61 72 65 6e 74 20 | 3d 20 74 61 72 67 65 74 |.parent |= target|
|00005f10| 3b 0a 09 62 61 73 65 20 | 3d 20 6e 65 77 20 50 6f |;..base |= new Po|
|00005f20| 69 6e 74 28 70 2e 78 2c | 20 70 2e 79 29 3b 0a 09 |int(p.x,| p.y);..|
|00005f30| 6e 61 6d 65 20 3d 20 6e | 65 77 20 53 74 72 69 6e |name = n|ew Strin|
|00005f40| 67 28 29 3b 09 0a 09 72 | 65 67 69 6f 6e 20 3d 20 |g();...r|egion = |
|00005f50| 6e 65 77 20 52 65 67 69 | 6f 6e 28 29 3b 0a 09 65 |new Regi|on();..e|
|00005f60| 78 69 74 73 20 3d 20 6e | 65 77 20 56 65 63 74 6f |xits = n|ew Vecto|
|00005f70| 72 28 29 3b 0a 09 65 6e | 74 72 61 6e 63 65 73 20 |r();..en|trances |
|00005f80| 3d 20 6e 65 77 20 56 65 | 63 74 6f 72 28 29 3b 0a |= new Ve|ctor();.|
|00005f90| 20 20 20 20 7d 0a 0a 20 | 20 20 20 2f 2f 20 43 6f | }.. | // Co|
|00005fa0| 6e 73 74 72 75 63 74 6f | 72 0a 20 20 20 20 4c 6f |nstructo|r. Lo|
|00005fb0| 63 61 74 69 6f 6e 28 4d | 61 70 20 74 61 72 67 65 |cation(M|ap targe|
|00005fc0| 74 2c 20 69 6e 74 20 78 | 2c 20 69 6e 74 20 79 29 |t, int x|, int y)|
|00005fd0| 20 7b 0a 09 74 68 69 73 | 28 74 61 72 67 65 74 2c | {..this|(target,|
|00005fe0| 20 6e 65 77 20 50 6f 69 | 6e 74 28 78 2c 20 79 29 | new Poi|nt(x, y)|
|00005ff0| 29 3b 0a 20 20 20 20 7d | 0a 0a 20 20 20 20 2f 2a |);. }|.. /*|
|00006000| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 20 41 63 63 65 73 73 |--------|- Access|
|00006010| 6f 72 20 4d 65 74 68 6f | 64 73 20 2d 2d 2d 2d 2d |or Metho|ds -----|
|00006020| 2d 2d 2d 20 2a 2f 0a 0a | 20 20 20 20 2f 2f 20 62 |--- */..| // b|
|00006030| 61 73 65 20 63 6f 6f 72 | 64 69 6e 61 74 65 20 6f |ase coor|dinate o|
|00006040| 66 20 74 68 65 20 6c 6f | 63 61 74 69 6f 6e 0a 20 |f the lo|cation. |
|00006050| 20 20 20 70 75 62 6c 69 | 63 20 50 6f 69 6e 74 20 | publi|c Point |
|00006060| 67 65 74 42 61 73 65 28 | 29 20 7b 72 65 74 75 72 |getBase(|) {retur|
|00006070| 6e 28 62 61 73 65 29 3b | 7d 3b 0a 20 20 20 20 70 |n(base);|};. p|
|00006080| 75 62 6c 69 63 20 76 6f | 69 64 20 73 65 74 42 61 |ublic vo|id setBa|
|00006090| 73 65 28 50 6f 69 6e 74 | 20 70 29 20 7b 62 61 73 |se(Point| p) {bas|
|000060a0| 65 20 3d 20 70 3b 7d 3b | 0a 0a 20 20 20 20 2f 2f |e = p;};|.. //|
|000060b0| 20 70 65 72 69 6d 65 74 | 65 72 20 6f 66 20 74 68 | perimet|er of th|
|000060c0| 65 20 72 65 67 69 6f 6e | 0a 20 20 20 20 70 75 62 |e region|. pub|
|000060d0| 6c 69 63 20 52 65 67 69 | 6f 6e 20 67 65 74 52 65 |lic Regi|on getRe|
|000060e0| 67 69 6f 6e 28 29 20 7b | 72 65 74 75 72 6e 28 72 |gion() {|return(r|
|000060f0| 65 67 69 6f 6e 29 3b 7d | 3b 0a 20 20 20 20 70 75 |egion);}|;. pu|
|00006100| 62 6c 69 63 20 76 6f 69 | 64 20 73 65 74 52 65 67 |blic voi|d setReg|
|00006110| 69 6f 6e 28 52 65 67 69 | 6f 6e 20 72 29 20 7b 0a |ion(Regi|on r) {.|
|00006120| 09 72 65 67 69 6f 6e 20 | 3d 20 72 3b 0a 20 20 20 |.region |= r;. |
|00006130| 20 7d 3b 20 0a 0a 20 20 | 20 20 2f 2f 20 6e 61 6d | }; .. | // nam|
|00006140| 65 20 6f 66 20 74 68 65 | 20 6c 6f 63 61 74 69 6f |e of the| locatio|
|00006150| 6e 0a 20 20 20 20 70 75 | 62 6c 69 63 20 53 74 72 |n. pu|blic Str|
|00006160| 69 6e 67 20 67 65 74 4e | 61 6d 65 28 29 20 7b 0a |ing getN|ame() {.|
|00006170| 09 72 65 74 75 72 6e 28 | 6e 61 6d 65 29 3b 0a 20 |.return(|name);. |
|00006180| 20 20 20 7d 3b 0a 0a 20 | 20 20 20 70 75 62 6c 69 | };.. | publi|
|00006190| 63 20 76 6f 69 64 20 73 | 65 74 4e 61 6d 65 28 53 |c void s|etName(S|
|000061a0| 74 72 69 6e 67 20 73 29 | 20 7b 0a 09 6e 61 6d 65 |tring s)| {..name|
|000061b0| 20 3d 20 73 3b 0a 09 70 | 61 72 65 6e 74 2e 72 65 | = s;..p|arent.re|
|000061c0| 67 69 73 74 65 72 4c 6f | 63 61 74 69 6f 6e 28 73 |gisterLo|cation(s|
|000061d0| 2c 20 74 68 69 73 29 3b | 0a 09 70 61 72 65 6e 74 |, this);|..parent|
|000061e0| 2e 72 65 67 69 73 74 65 | 72 4b 65 79 77 6f 72 64 |.registe|rKeyword|
|000061f0| 28 73 2c 20 74 68 69 73 | 29 3b 0a 20 20 20 20 7d |(s, this|);. }|
|00006200| 3b 0a 0a 20 20 20 20 2f | 2f 20 68 79 70 65 72 6c |;.. /|/ hyperl|
|00006210| 69 6e 6b 3b 0a 20 20 20 | 20 70 75 62 6c 69 63 20 |ink;. | public |
|00006220| 55 52 4c 20 67 65 74 55 | 52 4c 28 29 20 7b 72 65 |URL getU|RL() {re|
|00006230| 74 75 72 6e 28 75 72 6c | 29 3b 7d 3b 0a 20 20 20 |turn(url|);};. |
|00006240| 20 2f 2f 20 41 73 73 75 | 6d 65 20 74 68 61 74 20 | // Assu|me that |
|00006250| 75 72 6c 27 73 20 75 72 | 6c 20 61 6e 64 20 75 20 |url's ur|l and u |
|00006260| 61 72 65 20 67 6f 6f 64 | 2e 2e 2e 0a 20 20 20 20 |are good|.... |
|00006270| 70 75 62 6c 69 63 20 76 | 6f 69 64 20 73 65 74 55 |public v|oid setU|
|00006280| 52 4c 28 53 74 72 69 6e | 67 20 75 72 6c 73 74 72 |RL(Strin|g urlstr|
|00006290| 69 6e 67 29 20 7b 0a 09 | 74 72 79 20 7b 0a 09 20 |ing) {..|try {.. |
|000062a0| 20 20 20 75 72 6c 20 3d | 20 6e 65 77 20 55 52 4c | url =| new URL|
|000062b0| 28 75 72 6c 73 74 72 69 | 6e 67 29 3b 0a 09 7d 20 |(urlstri|ng);..} |
|000062c0| 63 61 74 63 68 20 28 6a | 61 76 61 2e 6e 65 74 2e |catch (j|ava.net.|
|000062d0| 4d 61 6c 66 6f 72 6d 65 | 64 55 52 4c 45 78 63 65 |Malforme|dURLExce|
|000062e0| 70 74 69 6f 6e 20 65 29 | 20 7b 0a 09 20 20 20 20 |ption e)| {.. |
|000062f0| 65 72 72 6f 72 5f 68 61 | 6e 64 6c 65 72 2e 64 69 |error_ha|ndler.di|
|00006300| 73 70 6c 61 79 28 22 4d | 61 6c 66 6f 72 6d 65 64 |splay("M|alformed|
|00006310| 20 55 52 4c 20 45 78 63 | 65 70 74 69 6f 6e 3a 20 | URL Exc|eption: |
|00006320| 22 20 2b 20 65 2e 67 65 | 74 4d 65 73 73 61 67 65 |" + e.ge|tMessage|
|00006330| 28 29 29 3b 0a 09 7d 3b | 0a 20 20 20 20 7d 3b 0a |());..};|. };.|
|00006340| 0a 0a 20 20 20 20 2f 2f | 20 64 65 74 61 69 6c 20 |.. //| detail |
|00006350| 6d 61 70 20 6f 66 20 6c | 6f 63 61 74 69 6f 6e 0a |map of l|ocation.|
|00006360| 20 20 20 20 70 75 62 6c | 69 63 20 4d 61 70 20 67 | publ|ic Map g|
|00006370| 65 74 44 65 74 61 69 6c | 4d 61 70 28 29 20 7b 72 |etDetail|Map() {r|
|00006380| 65 74 75 72 6e 28 64 65 | 74 61 69 6c 29 3b 7d 3b |eturn(de|tail);};|
|00006390| 0a 20 20 20 20 70 75 62 | 6c 69 63 20 76 6f 69 64 |. pub|lic void|
|000063a0| 20 73 65 74 44 65 74 61 | 69 6c 4d 61 70 28 4d 61 | setDeta|ilMap(Ma|
|000063b0| 70 20 6d 29 20 7b 0a 09 | 64 65 74 61 69 6c 20 3d |p m) {..|detail =|
|000063c0| 20 6e 65 77 20 4d 61 70 | 28 29 3b 0a 09 64 65 74 | new Map|();..det|
|000063d0| 61 69 6c 20 3d 20 6d 3b | 0a 20 20 20 20 7d 3b 0a |ail = m;|. };.|
|000063e0| 0a 20 20 20 20 2f 2f 20 | 65 6e 74 72 61 6e 63 65 |. // |entrance|
|000063f0| 73 0a 20 20 20 20 70 75 | 62 6c 69 63 20 56 65 63 |s. pu|blic Vec|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.